]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-18859.rs
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / issues / issue-18859.rs
1 // run-pass
2
3 mod foo {
4     pub mod bar {
5         pub mod baz {
6             pub fn name() -> &'static str {
7                 module_path!()
8             }
9         }
10     }
11 }
12
13 fn main() {
14     assert_eq!(module_path!(), "issue_18859");
15     assert_eq!(foo::bar::baz::name(), "issue_18859::foo::bar::baz");
16 }