]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/loan_ends_mid_block_pair.stderr
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / loan_ends_mid_block_pair.stderr
1 error[E0506]: cannot assign to `data.0` because it is borrowed
2   --> $DIR/loan_ends_mid_block_pair.rs:12:5
3    |
4 LL |     let c = &mut data.0;
5    |             ----------- borrow of `data.0` occurs here
6 LL |     capitalize(c);
7 LL |     data.0 = 'e';
8    |     ^^^^^^^^^^^^ assignment to borrowed `data.0` occurs here
9 ...
10 LL |     capitalize(c);
11    |                - borrow later used here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0506`.