@@ -78,7 +78,7 @@ error: the loop variable `i` is only used to index `vec`.
78
78
help: consider using an iterator
79
79
|
80
80
86 | for <item> in &vec {
81
- |
81
+ | ^^^^^^ ^^^^
82
82
83
83
error: the loop variable `i` is only used to index `vec`.
84
84
--> $DIR/for_loop.rs:95:14
@@ -88,7 +88,7 @@ error: the loop variable `i` is only used to index `vec`.
88
88
help: consider using an iterator
89
89
|
90
90
95 | for <item> in &vec {
91
- |
91
+ | ^^^^^^ ^^^^
92
92
93
93
error: the loop variable `j` is only used to index `STATIC`.
94
94
--> $DIR/for_loop.rs:100:14
@@ -98,7 +98,7 @@ error: the loop variable `j` is only used to index `STATIC`.
98
98
help: consider using an iterator
99
99
|
100
100
100 | for <item> in STATIC.iter().take(4) {
101
- |
101
+ | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
102
102
103
103
error: the loop variable `j` is only used to index `CONST`.
104
104
--> $DIR/for_loop.rs:104:14
@@ -108,7 +108,7 @@ error: the loop variable `j` is only used to index `CONST`.
108
108
help: consider using an iterator
109
109
|
110
110
104 | for <item> in CONST.iter().take(4) {
111
- |
111
+ | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^
112
112
113
113
error: the loop variable `i` is used to index `vec`
114
114
--> $DIR/for_loop.rs:108:14
@@ -118,7 +118,7 @@ error: the loop variable `i` is used to index `vec`
118
118
help: consider using an iterator
119
119
|
120
120
108 | for (i, <item>) in vec.iter().enumerate() {
121
- |
121
+ | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
122
122
123
123
error: the loop variable `i` is only used to index `vec2`.
124
124
--> $DIR/for_loop.rs:116:14
@@ -128,7 +128,7 @@ error: the loop variable `i` is only used to index `vec2`.
128
128
help: consider using an iterator
129
129
|
130
130
116 | for <item> in vec2.iter().take(vec.len()) {
131
- |
131
+ | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
132
133
133
error: the loop variable `i` is only used to index `vec`.
134
134
--> $DIR/for_loop.rs:120:14
@@ -138,7 +138,7 @@ error: the loop variable `i` is only used to index `vec`.
138
138
help: consider using an iterator
139
139
|
140
140
120 | for <item> in vec.iter().skip(5) {
141
- |
141
+ | ^^^^^^ ^^^^^^^^^^^^^^^^^^
142
142
143
143
error: the loop variable `i` is only used to index `vec`.
144
144
--> $DIR/for_loop.rs:124:14
@@ -148,7 +148,7 @@ error: the loop variable `i` is only used to index `vec`.
148
148
help: consider using an iterator
149
149
|
150
150
124 | for <item> in vec.iter().take(MAX_LEN) {
151
- |
151
+ | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^
152
152
153
153
error: the loop variable `i` is only used to index `vec`.
154
154
--> $DIR/for_loop.rs:128:14
@@ -158,7 +158,7 @@ error: the loop variable `i` is only used to index `vec`.
158
158
help: consider using an iterator
159
159
|
160
160
128 | for <item> in vec.iter().take(MAX_LEN + 1) {
161
- |
161
+ | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
162
162
163
163
error: the loop variable `i` is only used to index `vec`.
164
164
--> $DIR/for_loop.rs:132:14
@@ -168,7 +168,7 @@ error: the loop variable `i` is only used to index `vec`.
168
168
help: consider using an iterator
169
169
|
170
170
132 | for <item> in vec.iter().take(10).skip(5) {
171
- |
171
+ | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
172
172
173
173
error: the loop variable `i` is only used to index `vec`.
174
174
--> $DIR/for_loop.rs:136:14
@@ -178,7 +178,7 @@ error: the loop variable `i` is only used to index `vec`.
178
178
help: consider using an iterator
179
179
|
180
180
136 | for <item> in vec.iter().take(10 + 1).skip(5) {
181
- |
181
+ | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
182
182
183
183
error: the loop variable `i` is used to index `vec`
184
184
--> $DIR/for_loop.rs:140:14
@@ -188,7 +188,7 @@ error: the loop variable `i` is used to index `vec`
188
188
help: consider using an iterator
189
189
|
190
190
140 | for (i, <item>) in vec.iter().enumerate().skip(5) {
191
- |
191
+ | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
192
192
193
193
error: the loop variable `i` is used to index `vec`
194
194
--> $DIR/for_loop.rs:144:14
@@ -198,7 +198,7 @@ error: the loop variable `i` is used to index `vec`
198
198
help: consider using an iterator
199
199
|
200
200
144 | for (i, <item>) in vec.iter().enumerate().take(10).skip(5) {
201
- |
201
+ | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
202
202
203
203
error: this range is empty so this for loop will never run
204
204
--> $DIR/for_loop.rs:148:14
@@ -384,7 +384,7 @@ error: you seem to want to iterate on a map's values
384
384
help: use the corresponding method
385
385
|
386
386
385 | for v in m.values() {
387
- |
387
+ | ^ ^^^^^^^^^^
388
388
389
389
error: you seem to want to iterate on a map's values
390
390
--> $DIR/for_loop.rs:390:19
@@ -394,7 +394,7 @@ error: you seem to want to iterate on a map's values
394
394
help: use the corresponding method
395
395
|
396
396
390 | for v in (*m).values() {
397
- |
397
+ | ^ ^^^^^^^^^^^^^
398
398
399
399
error: you seem to want to iterate on a map's values
400
400
--> $DIR/for_loop.rs:398:19
@@ -404,7 +404,7 @@ error: you seem to want to iterate on a map's values
404
404
help: use the corresponding method
405
405
|
406
406
398 | for v in m.values_mut() {
407
- |
407
+ | ^ ^^^^^^^^^^^^^^
408
408
409
409
error: you seem to want to iterate on a map's values
410
410
--> $DIR/for_loop.rs:403:19
@@ -414,7 +414,7 @@ error: you seem to want to iterate on a map's values
414
414
help: use the corresponding method
415
415
|
416
416
403 | for v in (*m).values_mut() {
417
- |
417
+ | ^ ^^^^^^^^^^^^^^^^^
418
418
419
419
error: you seem to want to iterate on a map's keys
420
420
--> $DIR/for_loop.rs:409:24
@@ -424,7 +424,7 @@ error: you seem to want to iterate on a map's keys
424
424
help: use the corresponding method
425
425
|
426
426
409 | for k in rm.keys() {
427
- |
427
+ | ^ ^^^^^^^^^
428
428
429
429
error: it looks like you're manually copying between slices
430
430
--> $DIR/for_loop.rs:462:14
0 commit comments