fn foo(x: Box) -> isize { let y = &*x; free(x); //~ ERROR cannot move out of `x` because it is borrowed *y } fn free(_x: Box) { } fn main() { }