about summary refs log tree commit diff
path: root/tests/ui/macros/issue-78892-substitution-in-statement-attr.rs
blob: bdb9f873410238a89aebb3737ff930edd459ba5a (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)
}