Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
liveness
/
liveness-use-after-move.rs
blob: 5263e293603cdb9ca2395041ef5f82fea631e2d2 [
file
] [
log
] [
blame
]
#![
feature
(
box_syntax
)]
fn
main
()
{
let
x
:
Box
<
_
>
=
box
5
;
let
y
=
x
;
println
!(
"{}"
,
*
x
);
//~ ERROR borrow of moved value: `x`
y
.
clone
();
}