Skip to content

Commit

Permalink
Fix hygienic-label-x tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Sep 3, 2015
1 parent f6244f1 commit 1a69348
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/test/compile-fail/hygienic-label-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!() }
}
4 changes: 2 additions & 2 deletions src/test/compile-fail/hygienic-label-3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!()
};
}

0 comments on commit 1a69348

Please sign in to comment.