mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
17 lines
345 B
Rust
17 lines
345 B
Rust
#[allow(unreachable_code, unused_labels)]
|
|
fn main() {
|
|
'foo: loop {
|
|
break 'fo; //~ ERROR use of undeclared label
|
|
}
|
|
|
|
'bar: loop {
|
|
continue 'bor; //~ ERROR use of undeclared label
|
|
}
|
|
|
|
'longlabel: loop {
|
|
'longlabel1: loop {
|
|
break 'longlable; //~ ERROR use of undeclared label
|
|
}
|
|
}
|
|
}
|