Debian Codegraph @

gcc/testsuite/rust/compile/macros/mbe/macro-issue1224.rs

raw
1 macro_rules! impl_uint {
2 ($($ty:ident),*) => {
3 impl $ty {} // { dg-error "metavariable is still repeating at this depth" }
4 // { dg-error "unrecognised token" "" { target *-*-* } .-1 } // Spurious
5 // { dg-error "could not parse type" "" { target *-*-* } .-2 } // Spurious
6 };
7 }
8
9 impl_uint!(u8, u16, u32, u64, u128);