fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
487 B13 linesraw
1error[E0503]: cannot use `u.c` because it was mutably borrowed
2  --> $DIR/borrowck-union-borrow-nested.rs:24:21
3   |
4LL |             let ra = &mut u.s.a;
5   |                      ---------- borrow of `u.s.a` occurs here
6LL |             let b = u.c;
7   |                     ^^^ use of borrowed `u.s.a`
8LL |             ra.use_mut();
9   |             -- borrow later used here
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0503`.