We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f08f75f commit 974f1efCopy full SHA for 974f1ef
src/test/compile-fail/issue-32922.rs
@@ -9,12 +9,23 @@
9
// except according to those terms.
10
11
#![feature(rustc_attrs)]
12
+#![allow(warnings)]
13
14
macro_rules! foo { () => {
15
let x = 1;
16
macro_rules! bar { () => {x} }
17
let _ = bar!();
18
}}
19
20
+macro_rules! bar { // test issue #31856
21
+ ($n:ident) => (
22
+ let a = 1;
23
+ let $n = a;
24
+ )
25
+}
26
+
27
#[rustc_error]
-fn main() { foo! {}; } //~ ERROR compilation successful
28
+fn main() { //~ ERROR compilation successful
29
+ foo! {};
30
+ bar! {};
31
0 commit comments