Sign in
fuchsia
/
third_party
/
rust
/
03534ac8b70de1134ce7e91b172cd629048a6c8b
/
.
/
tests
/
ui
/
liveness
/
liveness-move-in-loop.rs
blob: 064be14d6d28cd13cf7177f7e3d48bc88802aa80 [
file
] [
log
] [
blame
]
fn
main
()
{
let
y
:
Box
<
isize
>
=
42.into
();
let
mut
x
:
Box
<
isize
>;
loop
{
println
!(
"{}"
,
y
);
loop
{
loop
{
loop
{
x
=
y
;
//~ ERROR use of moved value
x
.
clone
();
}
}
}
}
}