diff --git a/src/test/compile-fail/hygienic-label-1.rs b/src/test/compile-fail/hygienic-label-1.rs index dd6682a6f428..305b43402da0 100644 --- a/src/test/compile-fail/hygienic-label-1.rs +++ b/src/test/compile-fail/hygienic-label-1.rs @@ -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!() } } diff --git a/src/test/compile-fail/hygienic-label-3.rs b/src/test/compile-fail/hygienic-label-3.rs index e58cd09a84c0..b107b71024da 100644 --- a/src/test/compile-fail/hygienic-label-3.rs +++ b/src/test/compile-fail/hygienic-label-3.rs @@ -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!() }; }