@@ -82,7 +82,7 @@ error: the loop variable `i` is only used to index `vec`.
82
82
help: consider using an iterator
83
83
|
84
84
86 | for <item> in &vec {
85
- | ^^^^^^
85
+ |
86
86
87
87
error: the loop variable `i` is only used to index `vec`.
88
88
--> $DIR/for_loop.rs:95:5
@@ -95,7 +95,7 @@ error: the loop variable `i` is only used to index `vec`.
95
95
help: consider using an iterator
96
96
|
97
97
95 | for <item> in &vec {
98
- | ^^^^^^
98
+ |
99
99
100
100
error: the loop variable `j` is only used to index `STATIC`.
101
101
--> $DIR/for_loop.rs:100:5
@@ -108,7 +108,7 @@ error: the loop variable `j` is only used to index `STATIC`.
108
108
help: consider using an iterator
109
109
|
110
110
100 | for <item> in STATIC.iter().take(4) {
111
- | ^^^^^^
111
+ |
112
112
113
113
error: the loop variable `j` is only used to index `CONST`.
114
114
--> $DIR/for_loop.rs:104:5
@@ -121,7 +121,7 @@ error: the loop variable `j` is only used to index `CONST`.
121
121
help: consider using an iterator
122
122
|
123
123
104 | for <item> in CONST.iter().take(4) {
124
- | ^^^^^^
124
+ |
125
125
126
126
error: the loop variable `i` is used to index `vec`
127
127
--> $DIR/for_loop.rs:108:5
@@ -134,7 +134,7 @@ error: the loop variable `i` is used to index `vec`
134
134
help: consider using an iterator
135
135
|
136
136
108 | for (i, <item>) in vec.iter().enumerate() {
137
- | ^^^^^^^^^^^
137
+ |
138
138
139
139
error: the loop variable `i` is only used to index `vec2`.
140
140
--> $DIR/for_loop.rs:116:5
@@ -147,7 +147,7 @@ error: the loop variable `i` is only used to index `vec2`.
147
147
help: consider using an iterator
148
148
|
149
149
116 | for <item> in vec2.iter().take(vec.len()) {
150
- | ^^^^^^
150
+ |
151
151
152
152
error: the loop variable `i` is only used to index `vec`.
153
153
--> $DIR/for_loop.rs:120:5
@@ -160,7 +160,7 @@ error: the loop variable `i` is only used to index `vec`.
160
160
help: consider using an iterator
161
161
|
162
162
120 | for <item> in vec.iter().skip(5) {
163
- | ^^^^^^
163
+ |
164
164
165
165
error: the loop variable `i` is only used to index `vec`.
166
166
--> $DIR/for_loop.rs:124:5
@@ -173,7 +173,7 @@ error: the loop variable `i` is only used to index `vec`.
173
173
help: consider using an iterator
174
174
|
175
175
124 | for <item> in vec.iter().take(MAX_LEN) {
176
- | ^^^^^^
176
+ |
177
177
178
178
error: the loop variable `i` is only used to index `vec`.
179
179
--> $DIR/for_loop.rs:128:5
@@ -186,7 +186,7 @@ error: the loop variable `i` is only used to index `vec`.
186
186
help: consider using an iterator
187
187
|
188
188
128 | for <item> in vec.iter().take(MAX_LEN + 1) {
189
- | ^^^^^^
189
+ |
190
190
191
191
error: the loop variable `i` is only used to index `vec`.
192
192
--> $DIR/for_loop.rs:132:5
@@ -199,7 +199,7 @@ error: the loop variable `i` is only used to index `vec`.
199
199
help: consider using an iterator
200
200
|
201
201
132 | for <item> in vec.iter().take(10).skip(5) {
202
- | ^^^^^^
202
+ |
203
203
204
204
error: the loop variable `i` is only used to index `vec`.
205
205
--> $DIR/for_loop.rs:136:5
@@ -212,7 +212,7 @@ error: the loop variable `i` is only used to index `vec`.
212
212
help: consider using an iterator
213
213
|
214
214
136 | for <item> in vec.iter().take(10 + 1).skip(5) {
215
- | ^^^^^^
215
+ |
216
216
217
217
error: the loop variable `i` is used to index `vec`
218
218
--> $DIR/for_loop.rs:140:5
@@ -225,7 +225,7 @@ error: the loop variable `i` is used to index `vec`
225
225
help: consider using an iterator
226
226
|
227
227
140 | for (i, <item>) in vec.iter().enumerate().skip(5) {
228
- | ^^^^^^^^^^^
228
+ |
229
229
230
230
error: the loop variable `i` is used to index `vec`
231
231
--> $DIR/for_loop.rs:144:5
@@ -238,7 +238,7 @@ error: the loop variable `i` is used to index `vec`
238
238
help: consider using an iterator
239
239
|
240
240
144 | for (i, <item>) in vec.iter().enumerate().take(10).skip(5) {
241
- | ^^^^^^^^^^^
241
+ |
242
242
243
243
error: this range is empty so this for loop will never run
244
244
--> $DIR/for_loop.rs:148:5
@@ -448,7 +448,7 @@ error: you seem to want to iterate on a map's values
448
448
help: use the corresponding method
449
449
|
450
450
385 | for v in m.values() {
451
- | ^
451
+ |
452
452
453
453
error: you seem to want to iterate on a map's values
454
454
--> $DIR/for_loop.rs:390:5
@@ -464,7 +464,7 @@ error: you seem to want to iterate on a map's values
464
464
help: use the corresponding method
465
465
|
466
466
390 | for v in (*m).values() {
467
- | ^
467
+ |
468
468
469
469
error: you seem to want to iterate on a map's values
470
470
--> $DIR/for_loop.rs:398:5
@@ -477,7 +477,7 @@ error: you seem to want to iterate on a map's values
477
477
help: use the corresponding method
478
478
|
479
479
398 | for v in m.values_mut() {
480
- | ^
480
+ |
481
481
482
482
error: you seem to want to iterate on a map's values
483
483
--> $DIR/for_loop.rs:403:5
@@ -490,7 +490,7 @@ error: you seem to want to iterate on a map's values
490
490
help: use the corresponding method
491
491
|
492
492
403 | for v in (*m).values_mut() {
493
- | ^
493
+ |
494
494
495
495
error: you seem to want to iterate on a map's keys
496
496
--> $DIR/for_loop.rs:409:5
@@ -503,7 +503,7 @@ error: you seem to want to iterate on a map's keys
503
503
help: use the corresponding method
504
504
|
505
505
409 | for k in rm.keys() {
506
- | ^
506
+ |
507
507
508
508
error: it looks like you're manually copying between slices
509
509
--> $DIR/for_loop.rs:462:5
0 commit comments