fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
488 B15 linesraw
1error[E0499]: cannot borrow `y.0` as mutable more than once at a time
2  --> $DIR/borrowck-anon-fields-struct.rs:29:11
3   |
4LL |         Y(ref mut a, _) => a
5   |           --------- first mutable borrow occurs here
6...
7LL |         Y(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`.