aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro33.rs
blob: 2ccd33e50d3a49e31852f2fbb3b3cfb1174e0201 (plain)
1
2
3
4
5
macro_rules! forbidden_frag {
    ($t:ty $not_block:ident) => {{}}; // { dg-error "fragment specifier .ident. is not allowed after .ty. fragments" }
                                      // { dg-error "required first macro rule in macro rules definition could not be parsed" "" { target *-*-* } .-1 }
                                      // { dg-error "failed to parse item in crate" "" { target *-*-* } .-2 }
}