@@ -18,131 +18,119 @@ error: iterating on a map's values
1818LL | let _ = map.iter().map(|(_, v)| v + 2).collect::<Vec<_>>();
1919 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|v| v + 2)`
2020
21- error: iterating on a map's values
22- --> $DIR/iter_kv_map.rs:18:13
23- |
24- LL | let _ = map.iter().map(|(_, val)| {val}).collect::<Vec<_>>();
25- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|val| {val})`
26-
2721error: iterating on a map's keys
28- --> $DIR/iter_kv_map.rs:20 :13
22+ --> $DIR/iter_kv_map.rs:19 :13
2923 |
3024LL | let _ = map.clone().into_iter().map(|(key, _)| key).collect::<Vec<_>>();
3125 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_keys()`
3226
3327error: iterating on a map's keys
34- --> $DIR/iter_kv_map.rs:21 :13
28+ --> $DIR/iter_kv_map.rs:20 :13
3529 |
3630LL | let _ = map.clone().into_iter().map(|(key, _)| key + 2).collect::<Vec<_>>();
3731 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_keys().map(|key| key + 2)`
3832
3933error: iterating on a map's values
40- --> $DIR/iter_kv_map.rs:23 :13
34+ --> $DIR/iter_kv_map.rs:22 :13
4135 |
4236LL | let _ = map.clone().into_iter().map(|(_, val)| val).collect::<Vec<_>>();
4337 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_values()`
4438
4539error: iterating on a map's values
46- --> $DIR/iter_kv_map.rs:24 :13
40+ --> $DIR/iter_kv_map.rs:23 :13
4741 |
4842LL | let _ = map.clone().into_iter().map(|(_, val)| val + 2).collect::<Vec<_>>();
4943 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_values().map(|val| val + 2)`
5044
5145error: iterating on a map's values
52- --> $DIR/iter_kv_map.rs:26 :13
46+ --> $DIR/iter_kv_map.rs:25 :13
5347 |
5448LL | let _ = map.clone().iter().map(|(_, val)| val).collect::<Vec<_>>();
5549 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().values()`
5650
5751error: iterating on a map's keys
58- --> $DIR/iter_kv_map.rs:27 :13
52+ --> $DIR/iter_kv_map.rs:26 :13
5953 |
6054LL | let _ = map.iter().map(|(key, _)| key).filter(|x| *x % 2 == 0).count();
6155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys()`
6256
6357error: iterating on a map's keys
64- --> $DIR/iter_kv_map.rs:37 :13
58+ --> $DIR/iter_kv_map.rs:36 :13
6559 |
6660LL | let _ = map.iter().map(|(key, _value)| key * 9).count();
6761 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys().map(|key| key * 9)`
6862
6963error: iterating on a map's values
70- --> $DIR/iter_kv_map.rs:38 :13
64+ --> $DIR/iter_kv_map.rs:37 :13
7165 |
7266LL | let _ = map.iter().map(|(_key, value)| value * 17).count();
7367 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|value| value * 17)`
7468
7569error: iterating on a map's keys
76- --> $DIR/iter_kv_map.rs:42 :13
70+ --> $DIR/iter_kv_map.rs:41 :13
7771 |
7872LL | let _ = map.iter().map(|(key, _)| key).collect::<Vec<_>>();
7973 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys()`
8074
8175error: iterating on a map's values
82- --> $DIR/iter_kv_map.rs:43 :13
76+ --> $DIR/iter_kv_map.rs:42 :13
8377 |
8478LL | let _ = map.iter().map(|(_, value)| value).collect::<Vec<_>>();
8579 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values()`
8680
8781error: iterating on a map's values
88- --> $DIR/iter_kv_map.rs:44 :13
82+ --> $DIR/iter_kv_map.rs:43 :13
8983 |
9084LL | let _ = map.iter().map(|(_, v)| v + 2).collect::<Vec<_>>();
9185 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|v| v + 2)`
9286
93- error: iterating on a map's values
94- --> $DIR/iter_kv_map.rs:45:13
95- |
96- LL | let _ = map.iter().map(|(_, val)| {val}).collect::<Vec<_>>();
97- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|val| {val})`
98-
9987error: iterating on a map's keys
100- --> $DIR/iter_kv_map.rs:47 :13
88+ --> $DIR/iter_kv_map.rs:45 :13
10189 |
10290LL | let _ = map.clone().into_iter().map(|(key, _)| key).collect::<Vec<_>>();
10391 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_keys()`
10492
10593error: iterating on a map's keys
106- --> $DIR/iter_kv_map.rs:48 :13
94+ --> $DIR/iter_kv_map.rs:46 :13
10795 |
10896LL | let _ = map.clone().into_iter().map(|(key, _)| key + 2).collect::<Vec<_>>();
10997 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_keys().map(|key| key + 2)`
11098
11199error: iterating on a map's values
112- --> $DIR/iter_kv_map.rs:50 :13
100+ --> $DIR/iter_kv_map.rs:48 :13
113101 |
114102LL | let _ = map.clone().into_iter().map(|(_, val)| val).collect::<Vec<_>>();
115103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_values()`
116104
117105error: iterating on a map's values
118- --> $DIR/iter_kv_map.rs:51 :13
106+ --> $DIR/iter_kv_map.rs:49 :13
119107 |
120108LL | let _ = map.clone().into_iter().map(|(_, val)| val + 2).collect::<Vec<_>>();
121109 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().into_values().map(|val| val + 2)`
122110
123111error: iterating on a map's values
124- --> $DIR/iter_kv_map.rs:53 :13
112+ --> $DIR/iter_kv_map.rs:51 :13
125113 |
126114LL | let _ = map.clone().iter().map(|(_, val)| val).collect::<Vec<_>>();
127115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.clone().values()`
128116
129117error: iterating on a map's keys
130- --> $DIR/iter_kv_map.rs:54 :13
118+ --> $DIR/iter_kv_map.rs:52 :13
131119 |
132120LL | let _ = map.iter().map(|(key, _)| key).filter(|x| *x % 2 == 0).count();
133121 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys()`
134122
135123error: iterating on a map's keys
136- --> $DIR/iter_kv_map.rs:64 :13
124+ --> $DIR/iter_kv_map.rs:62 :13
137125 |
138126LL | let _ = map.iter().map(|(key, _value)| key * 9).count();
139127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.keys().map(|key| key * 9)`
140128
141129error: iterating on a map's values
142- --> $DIR/iter_kv_map.rs:65 :13
130+ --> $DIR/iter_kv_map.rs:63 :13
143131 |
144132LL | let _ = map.iter().map(|(_key, value)| value * 17).count();
145133 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `map.values().map(|value| value * 17)`
146134
147- error: aborting due to 24 previous errors
135+ error: aborting due to 22 previous errors
148136
0 commit comments