gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / name_resolution10.rs
blob33643bd1a1477896d71e0dc3336d5303e9c02062
1 // { dg-options "-frust-name-resolution-2.0 -frust-compile-until=lowering" }
3 #![feature(decl_macro)]
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     }
14 #[macro_export]
15 fn main() {
16     foo::bar::baz::boof!();
17     crate::foo::bar::baz::boof!();
18     self::foo::bar::baz::boof!();