aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro48.rs
blob: 6b3b369bc3a0eba20fa41eb2e6dcd015d244d75e (plain)
1
2
3
4
5
6
7
8
9
10
// Check that "priv" is not in the follow set of :vis.

// { dg-error "token .priv. is not allowed after .vis. fragment" "#359" { target *-*-* } .+4 }
// { dg-error "required first macro rule in macro rules definition could not be parsed" "" { target *-*-* } .+3 }
// { dg-error "failed to parse item in crate" "" { target *-*-* } .+2 }
macro_rules! my_mac {
    ($v:vis priv) => {
        $v struct Foo(i32);
    }
}