]> git.lizzy.rs Git - rust.git/blob - src/test/ui/non-copyable-void.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / non-copyable-void.rs
1 // ignore-wasm32-bare no libc to test ffi with
2
3 #![feature(rustc_private)]
4
5 extern crate libc;
6
7 fn main() {
8     let x : *const Vec<isize> = &vec![1,2,3];
9     let y : *const libc::c_void = x as *const libc::c_void;
10     unsafe {
11         let _z = (*y).clone();
12         //~^ ERROR no method named `clone` found
13     }
14 }