Skip to content

Commit c7b2967

Browse files
committed
---
yaml --- r: 275362 b: refs/heads/master c: 974f1ef h: refs/heads/master
1 parent 7e65a34 commit c7b2967

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f08f75f25c2177748a1ebd6f22f14874c47939e2
2+
refs/heads/master: 974f1eff58d01ce0bb5583adf0066a84d8eed812
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/test/compile-fail/issue-32922.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,23 @@
99
// except according to those terms.
1010

1111
#![feature(rustc_attrs)]
12+
#![allow(warnings)]
1213

1314
macro_rules! foo { () => {
1415
let x = 1;
1516
macro_rules! bar { () => {x} }
1617
let _ = bar!();
1718
}}
1819

20+
macro_rules! bar { // test issue #31856
21+
($n:ident) => (
22+
let a = 1;
23+
let $n = a;
24+
)
25+
}
26+
1927
#[rustc_error]
20-
fn main() { foo! {}; } //~ ERROR compilation successful
28+
fn main() { //~ ERROR compilation successful
29+
foo! {};
30+
bar! {};
31+
}

0 commit comments

Comments
 (0)