Fix hygienic-label-x tests

This commit is contained in:
Simonas Kazlauskas 2015-09-03 00:03:38 +03:00
parent f6244f1516
commit 1a6934840e
2 changed files with 4 additions and 4 deletions

View File

@ -9,9 +9,9 @@
// except according to those terms.
macro_rules! foo {
() => { break 'x; }
() => { break 'x; } //~ ERROR use of undeclared label `'x`
}
pub fn main() {
'x: loop { foo!() } //~ ERROR use of undeclared label `'x`
'x: loop { foo!() }
}

View File

@ -9,11 +9,11 @@
// except according to those terms.
macro_rules! foo {
() => { break 'x; }
() => { break 'x; } //~ ERROR use of undeclared label `'x`
}
pub fn main() {
'x: for _ in 0..1 {
foo!() //~ ERROR use of undeclared label `'x`
foo!()
};
}