fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
474 B14 linesraw
1error[E0505]: cannot move out of `t0` because it is borrowed
2  --> $DIR/borrowck-move-mut-base-ptr.rs:10:14
3   |
4LL |     let p: &isize = &*t0; // Freezes `*t0`
5   |                     ---- borrow of `*t0` occurs here
6LL |     let t1 = t0;
7   |              ^^ move out of `t0` occurs here
8LL |     *t1 = 22;
9LL |     p.use_ref();
10   |     - borrow later used here
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0505`.