Skip to content

Instantly share code, notes, and snippets.

@willianpinho
Forked from rust-play/playground.rs
Created March 16, 2018 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willianpinho/3c82ef7bd26d952853332de6df73fdaa to your computer and use it in GitHub Desktop.
Save willianpinho/3c82ef7bd26d952853332de6df73fdaa to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
mod foo {
mod bar {
pub fn foobar() {
println!("hello");
}
}
}
fn main() {
foo::bar::foobar();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment