Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-move-from-unsafe-ptr.rs
blob: 824da5ceb07a0dee07baec16d1e011c158693a37 [
file
] [
log
] [
blame
]
unsafe
fn
foo
(
x
:
*
const
Box
<
isize
>)
->
Box
<
isize
>
{
let
y
=
*
x
;
//~ ERROR cannot move out of `*x` which is behind a raw pointer
return
y
;
}
fn
main
()
{
}