1 2 3 4 5 6 7
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() { }