rust/tests/ui/issues/issue-18859.rs

17 lines
302 B
Rust
Raw Normal View History

//@ run-pass
2014-11-24 05:24:38 +00:00
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");
2014-11-24 05:24:38 +00:00
}