5 fn borrow<F>(v: &isize, f: F) where F: FnOnce(&isize) {
12 let v: Box<_> = Box::new(3);
14 thread::spawn(move|| {
15 //~^ ERROR cannot move out of `v` because it is borrowed
21 fn box_imm_explicit() {
22 let v: Box<_> = Box::new(3);
24 thread::spawn(move|| {
25 //~^ ERROR cannot move
34 trait Fake { fn use_mut(&mut self) { } fn use_ref(&self) { } }
35 impl<T> Fake for T { }