rust/tests/ui/borrowck/two-phase-reservation-sharing-interference.nll_target.stderr
Zalathar 14d56e8338 Fix test problems discovered by the revision check
Most of these changes either add revision names that were apparently missing,
or explicitly mark a revision name as currently unused.
2024-05-09 14:47:09 +10:00

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`.