mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
9 lines
287 B
Rust
9 lines
287 B
Rust
fn main() {
|
|
loop {
|
|
//~^ NOTE `else` is attached to this loop
|
|
} else {
|
|
//~^ ERROR `loop...else` loops are not supported
|
|
//~| NOTE consider moving this `else` clause to a separate `if` statement and use a `bool` variable to control if it should run
|
|
}
|
|
}
|