summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-78892-substitution-in-statement-attr.rs
blob: 9d1fae7a234feb1dd5c5b5b891fca7d5bf78feb9 (plain)
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)
}