2012-04-04 19:07:52 -07:00
|
|
|
fn main() {
|
2012-06-29 16:26:56 -07:00
|
|
|
let x : *~[int] = ptr::addr_of(~[1,2,3]);
|
2012-04-04 19:07:52 -07:00
|
|
|
let y : *libc::c_void = x as *libc::c_void;
|
|
|
|
unsafe {
|
|
|
|
let _z = *y;
|
2012-06-30 12:23:59 +01:00
|
|
|
//~^ ERROR copying a noncopyable value
|
2012-04-04 19:07:52 -07:00
|
|
|
}
|
|
|
|
}
|