fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0594]: cannot assign to `t.v`, which is behind a `&` reference 2 --> $DIR/suggest-mut-method-for-loop-closure.rs:15:13 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`.