]> git.lizzy.rs Git - rust.git/blob - tests/ui/non-copyable-void.rs
Rollup merge of #107194 - xfix:remove-slice-internals-dependency-in-rustc-ast, r...
[rust.git] / tests / 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 }