help: use the corresponding method
|
LL | for v in m.values() {
- | ^ ^^^^^^^^^^
+ | ~ ~~~~~~~~~~
error: you seem to want to iterate on a map's values
--> $DIR/for_kv_map.rs:14:19
help: use the corresponding method
|
LL | for v in (*m).values() {
- | ^ ^^^^^^^^^^^^^
+ | ~ ~~~~~~~~~~~~~
error: you seem to want to iterate on a map's values
--> $DIR/for_kv_map.rs:22:19
help: use the corresponding method
|
LL | for v in m.values_mut() {
- | ^ ^^^^^^^^^^^^^^
+ | ~ ~~~~~~~~~~~~~~
error: you seem to want to iterate on a map's values
--> $DIR/for_kv_map.rs:27:19
help: use the corresponding method
|
LL | for v in (*m).values_mut() {
- | ^ ^^^^^^^^^^^^^^^^^
+ | ~ ~~~~~~~~~~~~~~~~~
error: you seem to want to iterate on a map's keys
--> $DIR/for_kv_map.rs:33:24
help: use the corresponding method
|
LL | for k in rm.keys() {
- | ^ ^^^^^^^^^
+ | ~ ~~~~~~~~~
error: aborting due to 5 previous errors