gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / name_resolution9.rs
blob93adb46d278a69ebea7d7c21e7f130a1c5336d87
1 // { dg-options "-frust-name-resolution-2.0" }
3 pub mod foo {
4     pub mod bar {
5         fn f() {
6             super::super::super::foo!(); // { dg-error "too many leading .super. keywords" }
7                                          // { dg-error "could not resolve macro invocation" "" { target *-*-* } .-1 }
9             super::crate::foo!(); // { dg-error "leading path segment .crate. can only be used" }
10                                   // { dg-error "could not resolve macro invocation" "" { target *-*-* } .-1 }
12                         
13             crate::foo::bar::super::foo!(); // { dg-error "leading path segment .super. can only be used" }
14                                                     // { dg-error "could not resolve macro invocation" "" { target *-*-* } .-1 }
15         }
16     }