Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
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
();
}