]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/fields-numeric-borrowck.stderr
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.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:6: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 |     borrow1.use_mut();
10    |     ----------------- first borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0499`.