Skip to content

Commit 6b27f0d

Browse files
Rollup merge of #78898 - SNCPlay42:issue-78892, r=Mark-Simulacrum
add regression test for #78892 closes #78892, which was already fixed on nightly.
2 parents 354098c + 868aa89 commit 6b27f0d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// check-pass
2+
3+
// regression test for #78892
4+
5+
macro_rules! mac {
6+
($lint_name:ident) => {{
7+
#[allow($lint_name)]
8+
let _ = ();
9+
}};
10+
}
11+
12+
fn main() {
13+
mac!(dead_code)
14+
}

0 commit comments

Comments
 (0)