summaryrefslogtreecommitdiffstats
path: root/src/test/ui/non-copyable-void.rs
blob: ddaaee436ae23b43517944cef4f19b2350d1c46f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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
    }
}