-
-
Save BillBarnhill/289e34a59fc976774a2ae98303f25f3e to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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