mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
add regression test for #78892
This commit is contained in:
parent
25f6938da4
commit
868aa8974d
@ -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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user