Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
loops
/
issue-1962.rs
blob: 9c8fb500ba35c54b1ddc948b38dca74622bb5cac [
file
] [
log
] [
blame
] [
edit
]
//@ compile-flags: -D while-true
//@ run-rustfix
fn
main
()
{
let
mut
i
=
0
;
'
a
:
while
true
{
//~ ERROR denote infinite loops with `loop
i
+=
1
;
if
i
==
5
{
break
'
a
;
}
}
}