]> git.proxmox.com Git - rustc.git/blob - src/test/ui/hygiene/fields-numeric-borrowck.stderr
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / test / ui / hygiene / fields-numeric-borrowck.stderr
1 error[E0499]: cannot borrow `s.0` as mutable more than once at a time
2 --> $DIR/fields-numeric-borrowck.rs:16:16
3 |
4 LL | let borrow1 = &mut s.0;
5 | --- first mutable borrow occurs here
6 LL | let S { 0: ref mut borrow2 } = s;
7 | ^^^^^^^^^^^^^^^ second mutable borrow occurs here
8 ...
9 LL | }
10 | - first borrow ends here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0499`.