Fix hygienic-label-x tests
This commit is contained in:
parent
f6244f1516
commit
1a6934840e
2 changed files with 4 additions and 4 deletions
|
|
@ -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!() }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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!()
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue