mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +00:00
11 lines
193 B
Rust
11 lines
193 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; }
|
|
}
|
|
}
|