1 // Test that attempt to move `&mut` pointer while pointee is borrowed
4 // Example from compiler/rustc_borrowck/borrowck/README.md
8 fn foo(t0: &mut isize) {
9 let p: &isize = &*t0; // Freezes `*t0`
10 let t1 = t0; //~ ERROR cannot move out of `t0`
18 trait Fake { fn use_mut(&mut self) { } fn use_ref(&self) { } }
19 impl<T> Fake for T { }