]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/issue-78892-substitution-in-statement-attr.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[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 }