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