mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
15 lines
316 B
Rust
15 lines
316 B
Rust
//@ ignore-wasm32-bare no libc to test ffi with
|
|
|
|
#![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
|
|
}
|
|
}
|