fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
476 B14 linesraw
1error[E0502]: cannot borrow `*v` as mutable because it is also borrowed as immutable
2  --> $DIR/borrowck-lend-flow-if.rs:29:16
3   |
4LL |         _w = &v;
5   |              -- immutable borrow occurs here
6LL |     }
7LL |     borrow_mut(&mut *v);
8   |                ^^^^^^^ mutable borrow occurs here
9LL |     _w.use_ref();
10   |     -- immutable borrow later used here
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0502`.