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