Rollup merge of #78898 - SNCPlay42:issue-78892, r=Mark-Simulacrum

add regression test for #78892

closes #78892, which was already fixed on nightly.
This commit is contained in:
Jonas Schievink 2020-11-10 14:45:30 +01:00 committed by GitHub
commit 6b27f0d5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}