Sign in
fuchsia
/
third_party
/
rust
/
4bf20b2b558289e9dcffd496890df116f98612c7
/
.
/
tests
/
ui
/
loops
/
issue-1962.rs
blob: 9c8fb500ba35c54b1ddc948b38dca74622bb5cac [
file
] [
log
] [
blame
]
//@ 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
;
}
}
}