gcc/testsuite/rust/compile/macros/mbe/macro48.rs
raw| 1 | // Check that "priv" is not in the follow set of :vis. |
| 2 | |
| 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 | } |
| 10 | } |