]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-nll.stderr
Rollup merge of #94263 - anko:patch-1, r=GuillaumeGomez
[rust.git] / src / test / ui / feature-gates / feature-gate-nll.stderr
1 error[E0502]: cannot borrow `*x.1` as immutable because it is also borrowed as mutable
2   --> $DIR/feature-gate-nll.rs:15:13
3    |
4 LL |     let m = &mut x;
5    |             ------ mutable borrow occurs here
6 LL |     let p = &*x.1;
7    |             ^^^^^ immutable borrow occurs here
8 LL |
9 LL |     m;
10    |     - mutable borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0502`.