Skip to content

Instantly share code, notes, and snippets.

@BillBarnhill
Forked from rust-play/playground.rs
Last active April 19, 2021 18:40
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 BillBarnhill/289e34a59fc976774a2ae98303f25f3e to your computer and use it in GitHub Desktop.
Save BillBarnhill/289e34a59fc976774a2ae98303f25f3e to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
mod foo {
pub fn name() -> &'static str {
module_path!()
}
}
fn main() {
println!("Hello, {}", foo::name());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment