rust/tests/ui/non-copyable-void.rs
2024-04-15 08:54:11 -04:00

11 lines
230 B
Rust

use std::ffi::c_void;
fn main() {
let x : *const Vec<isize> = &vec![1,2,3];
let y : *const c_void = x as *const c_void;
unsafe {
let _z = (*y).clone();
//~^ ERROR no method named `clone` found
}
}