mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
Fix hygienic-label-x tests
This commit is contained in:
parent
f6244f1516
commit
1a6934840e
@ -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…
Reference in New Issue
Block a user