1 error[E0502]: cannot borrow `t0` as mutable because `*t0` is also borrowed as immutable
2 --> $DIR/borrowck-swap-mut-base-ptr.rs:23:15
4 LL | let p: &isize = &*t0; // Freezes `*t0`
5 | --- immutable borrow occurs here
6 LL | swap(&mut t0, &mut t1); //~ ERROR cannot borrow `t0`
7 | ^^ mutable borrow occurs here
10 | - immutable borrow ends here
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0502`.