add regression test for #78892

This commit is contained in:
SNCPlay42 2020-11-09 15:43:33 +00:00
parent 25f6938da4
commit 868aa8974d

View File

@ -0,0 +1,14 @@
// check-pass
// regression test for #78892
macro_rules! mac {
($lint_name:ident) => {{
#[allow($lint_name)]
let _ = ();
}};
}
fn main() {
mac!(dead_code)
}