fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
483 B15 linesraw
1error[E0499]: cannot borrow `y.0` as mutable more than once at a time
2  --> $DIR/borrowck-anon-fields-tuple.rs:27:10
3   |
4LL |         (ref mut a, _) => a
5   |          --------- first mutable borrow occurs here
6...
7LL |         (ref mut b, _) => b
8   |          ^^^^^^^^^ second mutable borrow occurs here
9...
10LL |     *a += 1;
11   |     ------- first borrow later used here
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0499`.