gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / macro48.rs
blob6b3b369bc3a0eba20fa41eb2e6dcd015d244d75e
1 // Check that "priv" is not in the follow set of :vis.
3 // { dg-error "token .priv. is not allowed after .vis. fragment" "#359" { target *-*-* } .+4 }
4 // { dg-error "required first macro rule in macro rules definition could not be parsed" "" { target *-*-* } .+3 }
5 // { dg-error "failed to parse item in crate" "" { target *-*-* } .+2 }
6 macro_rules! my_mac {
7     ($v:vis priv) => {
8         $v struct Foo(i32);
9     }