2018-08-08 14:28:26 +02:00
|
|
|
error[E0502]: cannot borrow `vec` as mutable because it is also borrowed as immutable
|
2022-04-01 13:13:25 -04:00
|
|
|
--> $DIR/two-phase-reservation-sharing-interference.rs:32:17
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | let shared = &vec;
|
|
|
|
| ---- immutable borrow occurs here
|
|
|
|
...
|
|
|
|
LL | delay = &mut vec;
|
|
|
|
| ^^^^^^^^ mutable borrow occurs here
|
|
|
|
...
|
|
|
|
LL | shared[0];
|
2018-09-29 11:47:47 +01:00
|
|
|
| ------ immutable borrow later used here
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0502`.
|