2020-07-02 14:32:12 +09:00
|
|
|
// compile-flags: -D while-true
|
|
|
|
// run-rustfix
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut i = 0;
|
2021-01-19 15:51:51 -08:00
|
|
|
'a: loop { //~ ERROR denote infinite loops with `loop
|
2020-07-02 14:32:12 +09:00
|
|
|
i += 1;
|
2021-01-19 15:51:51 -08:00
|
|
|
if i == 5 { break 'a; }
|
2020-07-02 14:32:12 +09:00
|
|
|
}
|
|
|
|
}
|