]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-anon-fields-struct.stderr
Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyup
[rust.git] / src / test / ui / borrowck / borrowck-anon-fields-struct.stderr
1 error[E0499]: cannot borrow `y.0` as mutable more than once at a time
2   --> $DIR/borrowck-anon-fields-struct.rs:29:11
3    |
4 LL |         Y(ref mut a, _) => a
5    |           --------- first mutable borrow occurs here
6 ...
7 LL |         Y(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`.