Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
for-loop-while
/
liveness-move-in-loop.rs
blob: ce73d6335cb211894d45d3fa8c4bbb255940af15 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
// pretty-expanded FIXME #23616
fn
take
(
x
:
isize
)
->
isize
{
x
}
fn
the_loop
()
{
let
mut
list
=
Vec
::
new
();
loop
{
let
x
=
5
;
if
x
>
3
{
list
.
push
(
take
(
x
));
}
else
{
break
;
}
}
}
pub
fn
main
()
{}