summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/two-phase-reservation-sharing-interference.nll_target.stderr
blob: e3e4057d6a78902d73a7446d6b8b24d03032b15f (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 previous error

For more information about this error, try `rustc --explain E0502`.