Debian Codegraph @

gcc/testsuite/rust/compile/name_resolution10.rs

raw
1 // { dg-options "-frust-name-resolution-2.0 -frust-compile-until=lowering" }
2
3 #![feature(decl_macro)]
4
5 pub mod foo {
6 pub mod bar {
7 pub mod baz {
8 // macros 2.0 get inserted in Ribs like items
9 pub macro boof() {}
10 }
11 }
12 }
13
14 #[macro_export]
15 fn main() {
16 foo::bar::baz::boof!();
17 crate::foo::bar::baz::boof!();
18 self::foo::bar::baz::boof!();
19 }