about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/compile-fail/hygienic-label-1.rs4
-rw-r--r--src/test/compile-fail/hygienic-label-3.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/hygienic-label-1.rs b/src/test/compile-fail/hygienic-label-1.rs
index dd6682a6f42..305b43402da 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 e58cd09a84c..b107b71024d 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!()
     };
 }