Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
for-loop-while
/
while-label.rs
blob: b0a1eea1b17d3b9ff966438278ac532b2cd2fdf0 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
unreachable_code
)]
pub
fn
main
()
{
let
mut
i
=
100
;
'
w
:
while
1
+
1
==
2
{
i
-=
1
;
if
i
==
95
{
break
'
w
;
panic
!(
"Should have broken out of loop"
);
}
}
assert_eq
!(
i
,
95
);
}