aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro31.rs
blob: 6674a5fe554b24d072fa92fefe43e9e68ac17474 (plain)
1
2
3
4
5
6
7
8
macro_rules! m {
    ($($e:expr)* $($f:expr)*) => {
        // { dg-error "fragment is not allowed after .expr. fragment" "" { target *-*-* } .-1 }
        // { dg-error "required first macro rule in macro rules definition could not be parsed" "" { target *-*-* } .-2 }
        // { dg-error "failed to parse item in crate" "" { target *-*-* } .-3 }
        $e
    };
}