mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
8fde7e3b64
fixes #123261
32 lines
531 B
Rust
32 lines
531 B
Rust
//@ run-rustfix
|
|
|
|
#![allow(unused)]
|
|
|
|
fn main() {
|
|
let n = 1;
|
|
let m = 2;
|
|
let x = 'block: {
|
|
if n == 0 {
|
|
break 'block 1; //~ ERROR [E0268]
|
|
} else {
|
|
break 'block 2;
|
|
}
|
|
};
|
|
|
|
let y = 'block: {
|
|
if n == 0 {
|
|
break 'block 1; //~ ERROR [E0268]
|
|
}
|
|
break 'block 0;
|
|
};
|
|
|
|
let z = 'block: {
|
|
if n == 0 {
|
|
if m > 1 {
|
|
break 'block 3; //~ ERROR [E0268]
|
|
}
|
|
}
|
|
break 'block 1;
|
|
};
|
|
}
|