fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
527 B15 linesraw
1error[E0502]: cannot borrow `vec` as mutable because it is also borrowed as immutable
2  --> $DIR/two-phase-reservation-sharing-interference.rs:36:17
3   |
4LL |         let shared = &vec;
5   |                      ---- immutable borrow occurs here
6...
7LL |         delay = &mut vec;
8   |                 ^^^^^^^^ mutable borrow occurs here
9...
10LL |         shared[0];
11   |         ------ immutable borrow later used here
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0502`.