1 // verify that an error is raised when trying to move out of a
6 #![feature(box_syntax)]
9 let a: Box<Box<_>> = box box 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 { }