1 2 3 4 5 6 7 8 9 10 11 12 13 14
// check-pass // regression test for #78892 macro_rules! mac { ($lint_name:ident) => {{ #[allow($lint_name)] let _ = (); }}; } fn main() { mac!(dead_code) }