2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2014-11-23 22:24:38 -07:00
|
|
|
mod foo {
|
|
|
|
pub mod bar {
|
|
|
|
pub mod baz {
|
|
|
|
pub fn name() -> &'static str {
|
|
|
|
module_path!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2015-03-27 10:22:44 -07:00
|
|
|
assert_eq!(module_path!(), "issue_18859");
|
|
|
|
assert_eq!(foo::bar::baz::name(), "issue_18859::foo::bar::baz");
|
2014-11-23 22:24:38 -07:00
|
|
|
}
|