Sign in
fuchsia
/
third_party
/
rust
/
13ef05e2be9862ea7b94d0b42e0b2d044b3c7f6b
/
.
/
tests
/
ui
/
non-copyable-void.rs
blob: 586681478010f391771e775d6078e51cb18dc1fd [
file
] [
log
] [
blame
]
#![
feature
(
rustc_private
)]
extern
crate libc
;
fn
main
()
{
let
x
:
*
const
Vec
<
isize
>
=
&
vec
![
1
,
2
,
3
];
let
y
:
*
const
libc
::
c_void
=
x
as
*
const
libc
::
c_void
;
unsafe
{
let
_z
=
(*
y
).
clone
();
//~^ ERROR no method named `clone` found
}
}