aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro47.rs
blob: 36545af7e1669354f4db41e109287e5bc311863f (plain)
1
2
3
4
5
6
7
8
9
10
// Check the follow-set of :vis in macro rules.

macro_rules! my_mac {
    ($v:vis async) => {
        $v struct Foo(i32);
    };
    ($v:vis $i:ident) => {
        $v struct $i(i32);
    }
}