Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-unary-move.rs
blob: 3b4c0731fc5c76eec36ddd6b8459cea949fd4bba [
file
] [
log
] [
blame
]
fn
foo
(
x
:
Box
<
isize
>)
->
isize
{
let
y
=
&*
x
;
free
(
x
);
//~ ERROR cannot move out of `x` because it is borrowed
*
y
}
fn
free
(
_x
:
Box
<
isize
>)
{
}
fn
main
()
{
}