]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/suggest-mut-method-for-loop.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / suggestions / suggest-mut-method-for-loop.stderr
CommitLineData
6a06907d
XL
1error[E0594]: cannot assign to `t.v` which is behind a `&` reference
2 --> $DIR/suggest-mut-method-for-loop.rs:14:9
3 |
4LL | for mut t in buzz.values() {
5 | -------------
6 | | |
7 | | help: use mutable method: `values_mut()`
8 | this iterator yields `&` references
9...
10LL | t.v += 1;
11 | ^^^^^^^^ `t` is a `&` reference, so the data it refers to cannot be written
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0594`.