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