fn foo(t0: &mut isize) {
    let p: &isize = &*t0; // Freezes `*t0`
    let t1 = t0;        //~ ERROR cannot move out of `t0`
    *t1 = 22;
}
// Test that attempt to move `&mut` pointer while pointee is borrowed
// yields an error.
//
// Example from src/librustc_borrowck/borrowck/README.md
Test that attempt to move `&mut` pointer while pointee is borrowed
yields an error.


Test that attempt to move ` &mut ` pointer while pointee is borrowed yields an error .
fn foo(t0: &mut isize) {
    let p: &isize = &*t0; // Freezes `*t0`
    let t1 = t0;        //~ ERROR cannot move out of `t0`
    *t1 = 22;
}
fn foo ( t0 : & mut isize ) { let p : & isize = & * t0 ; // Freezes `*t0` let t1 = t0 ; //~ ERROR cannot move out of `t0` * t1 = 22 ; }
Test that attempt to move `&mut` pointer while pointee is borrowed
yields an error.
Test that attempt to move ` &mut ` pointer while pointee is borrowed yields an error .
t0
&mut isize
t0
&mut isize