]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-27868.stderr
Rollup merge of #106946 - dtolnay:hashlinecolumn, r=m-ou-se
[rust.git] / tests / ui / nll / issue-27868.stderr
1 error[E0506]: cannot assign to `vecvec` because it is borrowed
2   --> $DIR/issue-27868.rs:24:9
3    |
4 LL |       vecvec[0] += {
5    |       ------
6    |       |
7    |  _____`vecvec` is borrowed here
8    | |
9 LL | |         vecvec = vec![];
10    | |         ^^^^^^ `vecvec` is assigned to here but it was already borrowed
11 LL | |
12 LL | |         0
13 LL | |     };
14    | |_____- borrow later used here
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0506`.