1 // verify that an error is raised when trying to move out of a
9 let a: Box<Box<_>> = Box::new(Box::new(2));
12 let z = *a; //~ ERROR: cannot move out of `*a` because it is borrowed
16 trait Fake { fn use_mut(&mut self) { } fn use_ref(&self) { } }
17 impl<T> Fake for T { }