fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0594]: cannot assign to `v.v`, which is behind a `&` reference 2 --> $DIR/suggest-mut-method-for-loop-hashmap.rs:17:9 3 | 4LL | for (_k, v) in map.iter() { 5 | ---------- 6 | | | 7 | | help: use mutable method: `iter_mut()` 8 | this iterator yields `&` references 9... 10LL | v.v += 1; 11 | ^^^^^^^^ `v` 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`.