]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/issue-78892-substitution-in-statement-attr.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / macros / issue-78892-substitution-in-statement-attr.rs
1 // check-pass
2
3 // regression test for #78892
4
5 macro_rules! mac {
6     ($lint_name:ident) => {{
7         #[allow($lint_name)]
8         let _ = ();
9     }};
10 }
11
12 fn main() {
13     mac!(dead_code)
14 }