fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
740 B21 linesraw
1error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
2  --> $DIR/regions-adjusted-lvalue-op.rs:14:16
3   |
4LL |     v[0].oh_no(&v);
5   |     -    ----- ^^ immutable borrow occurs here
6   |     |    |
7   |     |    mutable borrow later used by call
8   |     mutable borrow occurs here
9
10error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
11  --> $DIR/regions-adjusted-lvalue-op.rs:15:16
12   |
13LL |     (*v).oh_no(&v);
14   |       -  ----- ^^ immutable borrow occurs here
15   |       |  |
16   |       |  mutable borrow later used by call
17   |       mutable borrow occurs here
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0502`.