fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0505]: cannot move out of `t0` because it is borrowed 2 --> $DIR/borrowck-move-mut-base-ptr.rs:10:14 3 | 4LL | fn foo(t0: &mut isize) { 5 | -- binding `t0` declared here 6LL | let p: &isize = &*t0; // Freezes `*t0` 7 | ---- borrow of `*t0` occurs here 8LL | let t1 = t0; 9 | ^^ move out of `t0` occurs here 10LL | *t1 = 22; 11LL | p.use_ref(); 12 | - borrow later used here 13 14error: aborting due to previous error 15 16For more information about this error, try `rustc --explain E0505`.