]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-anon-fields-tuple.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / borrowck-anon-fields-tuple.stderr
1 error[E0499]: cannot borrow `y.0` as mutable more than once at a time
2   --> $DIR/borrowck-anon-fields-tuple.rs:27:10
3    |
4 LL |         (ref mut a, _) => a
5    |          --------- first mutable borrow occurs here
6 ...
7 LL |         (ref mut b, _) => b
8    |          ^^^^^^^^^ second mutable borrow occurs here
9 ...
10 LL |     *a += 1;
11    |     ------- first borrow later used here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0499`.