File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
trunk/src/test/compile-fail Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f08f75f25c2177748a1ebd6f22f14874c47939e2
2
+ refs/heads/master: 974f1eff58d01ce0bb5583adf0066a84d8eed812
3
3
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4
4
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
#![ feature( rustc_attrs) ]
12
+ #![ allow( warnings) ]
12
13
13
14
macro_rules! foo { ( ) => {
14
15
let x = 1 ;
15
16
macro_rules! bar { ( ) => { x} }
16
17
let _ = bar!( ) ;
17
18
} }
18
19
20
+ macro_rules! bar { // test issue #31856
21
+ ( $n: ident) => (
22
+ let a = 1 ;
23
+ let $n = a;
24
+ )
25
+ }
26
+
19
27
#[ rustc_error]
20
- fn main ( ) { foo ! { } ; } //~ ERROR compilation successful
28
+ fn main ( ) { //~ ERROR compilation successful
29
+ foo ! { } ;
30
+ bar ! { } ;
31
+ }
You can’t perform that action at this time.
0 commit comments