unsafe fn foo(x: *const Box) -> Box { let y = *x; //~ ERROR cannot move out of `*x` which is behind a raw pointer return y; } fn main() { }