]> git.proxmox.com Git - rustc.git/blob - tests/ui/nll/loan_ends_mid_block_pair.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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`.