Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
compile-fail
/
borrowck-move-from-unsafe-ptr.rs
blob: 71bba89fb77df92c806577e657643897855b3a31 [
file
]
fn
foo
(
x
:
*~
int
)
->
~
int
{
let
y
<-
*
x
;
//~ ERROR dereference of unsafe pointer requires unsafe function or block
return
y
;
}
fn
main
()
{
}