2024-04-14 16:23:07 -04:00
|
|
|
use std::ffi::c_void;
|
2013-05-24 19:35:29 -07:00
|
|
|
|
2012-04-04 19:07:52 -07:00
|
|
|
fn main() {
|
2016-10-29 22:54:04 +01:00
|
|
|
let x : *const Vec<isize> = &vec![1,2,3];
|
2024-04-14 16:23:07 -04:00
|
|
|
let y : *const c_void = x as *const c_void;
|
2012-04-04 19:07:52 -07:00
|
|
|
unsafe {
|
2013-07-02 12:47:32 -07:00
|
|
|
let _z = (*y).clone();
|
2015-05-02 23:30:59 -06:00
|
|
|
//~^ ERROR no method named `clone` found
|
2012-04-04 19:07:52 -07:00
|
|
|
}
|
|
|
|
}
|