mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
10 lines
195 B
Rust
10 lines
195 B
Rust
//@ compile-flags: -D while-true
|
|
//@ run-rustfix
|
|
|
|
fn main() {
|
|
let mut i = 0;
|
|
'a: loop { //~ ERROR denote infinite loops with `loop
|
|
i += 1;
|
|
if i == 5 { break 'a; }
|
|
}
|
|
}
|