mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
14d56e8338
Most of these changes either add revision names that were apparently missing, or explicitly mark a revision name as currently unused.
16 lines
529 B
Plaintext
16 lines
529 B
Plaintext
error[E0502]: cannot borrow `vec` as mutable because it is also borrowed as immutable
|
|
--> $DIR/two-phase-reservation-sharing-interference.rs:33: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`.
|