2019-01-02 00:42:04 -06:00
|
|
|
error: you seem to want to iterate on a map's values
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/for_kv_map.rs:9:19
|
2019-01-02 00:42:04 -06:00
|
|
|
|
|
|
|
|
LL | for (_, v) in &m {
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::for-kv-map` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::for_kv_map)]`
|
2019-01-02 00:42:04 -06:00
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for v in m.values() {
|
2021-08-11 09:21:33 -05:00
|
|
|
| ~ ~~~~~~~~~~
|
2019-01-02 00:42:04 -06:00
|
|
|
|
|
|
|
error: you seem to want to iterate on a map's values
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/for_kv_map.rs:16:19
|
2019-01-02 00:42:04 -06:00
|
|
|
|
|
|
|
|
LL | for (_, v) in &*m {
|
|
|
|
| ^^^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-01-02 00:42:04 -06:00
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for v in (*m).values() {
|
2021-08-11 09:21:33 -05:00
|
|
|
| ~ ~~~~~~~~~~~~~
|
2019-01-02 00:42:04 -06:00
|
|
|
|
|
|
|
error: you seem to want to iterate on a map's values
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/for_kv_map.rs:25:19
|
2019-01-02 00:42:04 -06:00
|
|
|
|
|
|
|
|
LL | for (_, v) in &mut m {
|
|
|
|
| ^^^^^^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-01-02 00:42:04 -06:00
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for v in m.values_mut() {
|
2021-08-11 09:21:33 -05:00
|
|
|
| ~ ~~~~~~~~~~~~~~
|
2019-01-02 00:42:04 -06:00
|
|
|
|
|
|
|
error: you seem to want to iterate on a map's values
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/for_kv_map.rs:31:19
|
2019-01-02 00:42:04 -06:00
|
|
|
|
|
|
|
|
LL | for (_, v) in &mut *m {
|
|
|
|
| ^^^^^^^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-01-02 00:42:04 -06:00
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for v in (*m).values_mut() {
|
2021-08-11 09:21:33 -05:00
|
|
|
| ~ ~~~~~~~~~~~~~~~~~
|
2019-01-02 00:42:04 -06:00
|
|
|
|
|
|
|
error: you seem to want to iterate on a map's keys
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/for_kv_map.rs:38:24
|
2019-01-02 00:42:04 -06:00
|
|
|
|
|
|
|
|
LL | for (k, _value) in rm {
|
|
|
|
| ^^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-01-02 00:42:04 -06:00
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | for k in rm.keys() {
|
2021-08-11 09:21:33 -05:00
|
|
|
| ~ ~~~~~~~~~
|
2019-01-02 00:42:04 -06:00
|
|
|
|
2024-08-08 12:13:50 -05:00
|
|
|
error: you seem to want to iterate on a map's keys
|
|
|
|
--> tests/ui/for_kv_map.rs:45:32
|
|
|
|
|
|
|
|
|
LL | 'label: for (k, _value) in rm {
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: use the corresponding method
|
|
|
|
|
|
|
|
|
LL | 'label: for k in rm.keys() {
|
|
|
|
| ~ ~~~~~~~~~
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2019-01-02 00:42:04 -06:00
|
|
|
|