summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-1962.fixed
blob: 897fd172b29f34bc8fbfafe520b557f18ffb7999 (plain)
1
2
3
4
5
6
7
8
9
10
// 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; }
    }
}