rust/tests/ui/issues/issue-1962.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
193 B
Rust
Raw Normal View History

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