Sign in
fuchsia
/
third_party
/
rust
/
6e1d94708a0a4a35ca7e46c6cac98adf62fe800e
/
.
/
tests
/
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
()
{
}