fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
437 B14 linesraw
1error[E0505]: cannot move out of `*a` because it is borrowed
2  --> $DIR/borrowck-move-from-subpath-of-borrowed-path.rs:12:13
3   |
4LL |     let b = &a;
5   |             -- borrow of `a` occurs here
6LL | 
7LL |     let z = *a;
8   |             ^^ move out of `*a` occurs here
9LL |     b.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`.