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