fork/rust

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

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

1.40.0
448 B14 linesraw
1error[E0502]: cannot borrow `*x.1` as immutable because it is also borrowed as mutable
2  --> $DIR/feature-gate-nll.rs:15:13
3   |
4LL |     let m = &mut x;
5   |             ------ mutable borrow occurs here
6LL |     let p = &*x.1;
7   |             ^^^^^ immutable borrow occurs here
8LL |
9LL |     m;
10   |     - mutable borrow later used here
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0502`.