71 lines
1.7 KiB
Plaintext
71 lines
1.7 KiB
Plaintext
error: you seem to want to iterate on a map's values
|
|
--> tests/ui/for_kv_map.rs:9:19
|
|
|
|
|
LL | for (_, v) in &m {
|
|
| ^^
|
|
|
|
|
= note: `-D clippy::for-kv-map` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::for_kv_map)]`
|
|
help: use the corresponding method
|
|
|
|
|
LL | for v in m.values() {
|
|
| ~ ~~~~~~~~~~
|
|
|
|
error: you seem to want to iterate on a map's values
|
|
--> tests/ui/for_kv_map.rs:16:19
|
|
|
|
|
LL | for (_, v) in &*m {
|
|
| ^^^
|
|
|
|
|
help: use the corresponding method
|
|
|
|
|
LL | for v in (*m).values() {
|
|
| ~ ~~~~~~~~~~~~~
|
|
|
|
error: you seem to want to iterate on a map's values
|
|
--> tests/ui/for_kv_map.rs:25:19
|
|
|
|
|
LL | for (_, v) in &mut m {
|
|
| ^^^^^^
|
|
|
|
|
help: use the corresponding method
|
|
|
|
|
LL | for v in m.values_mut() {
|
|
| ~ ~~~~~~~~~~~~~~
|
|
|
|
error: you seem to want to iterate on a map's values
|
|
--> tests/ui/for_kv_map.rs:31:19
|
|
|
|
|
LL | for (_, v) in &mut *m {
|
|
| ^^^^^^^
|
|
|
|
|
help: use the corresponding method
|
|
|
|
|
LL | for v in (*m).values_mut() {
|
|
| ~ ~~~~~~~~~~~~~~~~~
|
|
|
|
error: you seem to want to iterate on a map's keys
|
|
--> tests/ui/for_kv_map.rs:38:24
|
|
|
|
|
LL | for (k, _value) in rm {
|
|
| ^^
|
|
|
|
|
help: use the corresponding method
|
|
|
|
|
LL | for k in rm.keys() {
|
|
| ~ ~~~~~~~~~
|
|
|
|
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
|
|
|