Skip to content

Commit 1a69348

Browse files
committed
Fix hygienic-label-x tests
1 parent f6244f1 commit 1a69348

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/compile-fail/hygienic-label-1.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// except according to those terms.
1010

1111
macro_rules! foo {
12-
() => { break 'x; }
12+
() => { break 'x; } //~ ERROR use of undeclared label `'x`
1313
}
1414

1515
pub fn main() {
16-
'x: loop { foo!() } //~ ERROR use of undeclared label `'x`
16+
'x: loop { foo!() }
1717
}

src/test/compile-fail/hygienic-label-3.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
// except according to those terms.
1010

1111
macro_rules! foo {
12-
() => { break 'x; }
12+
() => { break 'x; } //~ ERROR use of undeclared label `'x`
1313
}
1414

1515
pub fn main() {
1616
'x: for _ in 0..1 {
17-
foo!() //~ ERROR use of undeclared label `'x`
17+
foo!()
1818
};
1919
}

0 commit comments

Comments
 (0)