Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
for-loop-while
/
while-label.rs
blob: 5abc41daf94b8aa8f7f74a6ef8dde2880d5bd466 [
file
] [
log
] [
blame
]
// 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
);
}