blob: 824da5ceb07a0dee07baec16d1e011c158693a37 [file] [log] [blame]
unsafe fn foo(x: *const Box<isize>) -> Box<isize> {
let y = *x; //~ ERROR cannot move out of `*x` which is behind a raw pointer
return y;
}
fn main() {
}