]> git.lizzy.rs Git - rust.git/blob - src/test/ui/non-copyable-void.rs
Rollup merge of #70281 - xfix:infallible-hash, r=dtolnay
[rust.git] / src / test / ui / non-copyable-void.rs
1 // FIXME: missing sysroot spans (#53081)
2 // ignore-i586-unknown-linux-gnu
3 // ignore-i586-unknown-linux-musl
4 // ignore-i686-unknown-linux-musl
5
6 // ignore-wasm32-bare no libc to test ffi with
7
8 #![feature(rustc_private)]
9
10 extern crate libc;
11
12 fn main() {
13     let x : *const Vec<isize> = &vec![1,2,3];
14     let y : *const libc::c_void = x as *const libc::c_void;
15     unsafe {
16         let _z = (*y).clone();
17         //~^ ERROR no method named `clone` found
18     }
19 }