From 1a6934840edcef6bb37171f7d6d035ab59f5d725 Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Thu, 3 Sep 2015 00:03:38 +0300 Subject: [PATCH] Fix hygienic-label-x tests --- src/test/compile-fail/hygienic-label-1.rs | 4 ++-- src/test/compile-fail/hygienic-label-3.rs | 4 ++-- 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 dd6682a6f4282..305b43402da0b 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 e58cd09a84c0d..b107b71024dad 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!() }; }