Sign in
fuchsia
/
third_party
/
rust
/
c38f75c21f016bffbf841ed5abce338f94201bde
/
.
/
tests
/
ui
/
non-copyable-void.rs
blob: 55bad82bc339df2e42ddeefad833f318ea6635e2 [
file
] [
log
] [
blame
]
use
std
::
ffi
::
c_void
;
fn
main
()
{
let
x
:
*
const
Vec
<
isize
>
=
&
vec
![
1
,
2
,
3
];
let
y
:
*
const
c_void
=
x
as
*
const
c_void
;
unsafe
{
let
_z
=
(*
y
).
clone
();
//~^ ERROR no method named `clone` found
}
}