fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

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