mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 02:31:13 +00:00
11 lines
195 B
Plaintext
11 lines
195 B
Plaintext
//@ 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; }
|
|
}
|
|
}
|