]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/borrowck-anon-fields-tuple.stderr
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / 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 //~ ERROR cannot borrow
8 | ^^^^^^^^^ second mutable borrow occurs here
9 ...
10 LL | }
11 | - first borrow ends here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0499`.