mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
17 lines
302 B
Rust
17 lines
302 B
Rust
//@ run-pass
|
|
|
|
mod foo {
|
|
pub mod bar {
|
|
pub mod baz {
|
|
pub fn name() -> &'static str {
|
|
module_path!()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
assert_eq!(module_path!(), "issue_18859");
|
|
assert_eq!(foo::bar::baz::name(), "issue_18859::foo::bar::baz");
|
|
}
|