fork/rust

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

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

1.43.0
515 B14 linesraw
1error[E0499]: cannot borrow `s.0` as mutable more than once at a time
2  --> $DIR/fields-numeric-borrowck.rs:6:16
3   |
4LL |     let borrow1 = &mut s.0;
5   |                   -------- first mutable borrow occurs here
6LL |     let S { 0: ref mut borrow2 } = s;
7   |                ^^^^^^^^^^^^^^^ second mutable borrow occurs here
8...
9LL |     borrow1.use_mut();
10   |     ------- first borrow later used here
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0499`.