]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-union-borrow-nested.nll.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / borrowck / borrowck-union-borrow-nested.nll.stderr
1 error[E0503]: cannot use `u.c` because it was mutably borrowed
2   --> $DIR/borrowck-union-borrow-nested.rs:36:21
3    |
4 LL |             let ra = &mut u.s.a;
5    |                      ---------- borrow of `u.s.a` occurs here
6 LL |             let b = u.c; //~ ERROR cannot use `u.c` because it was mutably borrowed
7    |                     ^^^ use of borrowed `u.s.a`
8 LL |             ra.use_mut();
9    |             -- borrow later used here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0503`.