@@ -82,7 +82,7 @@ error: the loop variable `i` is only used to index `vec`.
8282help: consider using an iterator
8383 |
848486 | for <item> in &vec {
85- | ^^^^^^
85+ |
8686
8787error: the loop variable `i` is only used to index `vec`.
8888 --> $DIR/for_loop.rs:95:5
@@ -95,7 +95,7 @@ error: the loop variable `i` is only used to index `vec`.
9595help: consider using an iterator
9696 |
979795 | for <item> in &vec {
98- | ^^^^^^
98+ |
9999
100100error: the loop variable `j` is only used to index `STATIC`.
101101 --> $DIR/for_loop.rs:100:5
@@ -108,7 +108,7 @@ error: the loop variable `j` is only used to index `STATIC`.
108108help: consider using an iterator
109109 |
110110100 | for <item> in STATIC.iter().take(4) {
111- | ^^^^^^
111+ |
112112
113113error: the loop variable `j` is only used to index `CONST`.
114114 --> $DIR/for_loop.rs:104:5
@@ -121,7 +121,7 @@ error: the loop variable `j` is only used to index `CONST`.
121121help: consider using an iterator
122122 |
123123104 | for <item> in CONST.iter().take(4) {
124- | ^^^^^^
124+ |
125125
126126error: the loop variable `i` is used to index `vec`
127127 --> $DIR/for_loop.rs:108:5
@@ -134,7 +134,7 @@ error: the loop variable `i` is used to index `vec`
134134help: consider using an iterator
135135 |
136136108 | for (i, <item>) in vec.iter().enumerate() {
137- | ^^^^^^^^^^^
137+ |
138138
139139error: the loop variable `i` is only used to index `vec2`.
140140 --> $DIR/for_loop.rs:116:5
@@ -147,7 +147,7 @@ error: the loop variable `i` is only used to index `vec2`.
147147help: consider using an iterator
148148 |
149149116 | for <item> in vec2.iter().take(vec.len()) {
150- | ^^^^^^
150+ |
151151
152152error: the loop variable `i` is only used to index `vec`.
153153 --> $DIR/for_loop.rs:120:5
@@ -160,7 +160,7 @@ error: the loop variable `i` is only used to index `vec`.
160160help: consider using an iterator
161161 |
162162120 | for <item> in vec.iter().skip(5) {
163- | ^^^^^^
163+ |
164164
165165error: the loop variable `i` is only used to index `vec`.
166166 --> $DIR/for_loop.rs:124:5
@@ -173,7 +173,7 @@ error: the loop variable `i` is only used to index `vec`.
173173help: consider using an iterator
174174 |
175175124 | for <item> in vec.iter().take(MAX_LEN) {
176- | ^^^^^^
176+ |
177177
178178error: the loop variable `i` is only used to index `vec`.
179179 --> $DIR/for_loop.rs:128:5
@@ -186,7 +186,7 @@ error: the loop variable `i` is only used to index `vec`.
186186help: consider using an iterator
187187 |
188188128 | for <item> in vec.iter().take(MAX_LEN + 1) {
189- | ^^^^^^
189+ |
190190
191191error: the loop variable `i` is only used to index `vec`.
192192 --> $DIR/for_loop.rs:132:5
@@ -199,7 +199,7 @@ error: the loop variable `i` is only used to index `vec`.
199199help: consider using an iterator
200200 |
201201132 | for <item> in vec.iter().take(10).skip(5) {
202- | ^^^^^^
202+ |
203203
204204error: the loop variable `i` is only used to index `vec`.
205205 --> $DIR/for_loop.rs:136:5
@@ -212,7 +212,7 @@ error: the loop variable `i` is only used to index `vec`.
212212help: consider using an iterator
213213 |
214214136 | for <item> in vec.iter().take(10 + 1).skip(5) {
215- | ^^^^^^
215+ |
216216
217217error: the loop variable `i` is used to index `vec`
218218 --> $DIR/for_loop.rs:140:5
@@ -225,7 +225,7 @@ error: the loop variable `i` is used to index `vec`
225225help: consider using an iterator
226226 |
227227140 | for (i, <item>) in vec.iter().enumerate().skip(5) {
228- | ^^^^^^^^^^^
228+ |
229229
230230error: the loop variable `i` is used to index `vec`
231231 --> $DIR/for_loop.rs:144:5
@@ -238,7 +238,7 @@ error: the loop variable `i` is used to index `vec`
238238help: consider using an iterator
239239 |
240240144 | for (i, <item>) in vec.iter().enumerate().take(10).skip(5) {
241- | ^^^^^^^^^^^
241+ |
242242
243243error: this range is empty so this for loop will never run
244244 --> $DIR/for_loop.rs:148:5
@@ -448,7 +448,7 @@ error: you seem to want to iterate on a map's values
448448help: use the corresponding method
449449 |
450450385 | for v in m.values() {
451- | ^
451+ |
452452
453453error: you seem to want to iterate on a map's values
454454 --> $DIR/for_loop.rs:390:5
@@ -464,7 +464,7 @@ error: you seem to want to iterate on a map's values
464464help: use the corresponding method
465465 |
466466390 | for v in (*m).values() {
467- | ^
467+ |
468468
469469error: you seem to want to iterate on a map's values
470470 --> $DIR/for_loop.rs:398:5
@@ -477,7 +477,7 @@ error: you seem to want to iterate on a map's values
477477help: use the corresponding method
478478 |
479479398 | for v in m.values_mut() {
480- | ^
480+ |
481481
482482error: you seem to want to iterate on a map's values
483483 --> $DIR/for_loop.rs:403:5
@@ -490,7 +490,7 @@ error: you seem to want to iterate on a map's values
490490help: use the corresponding method
491491 |
492492403 | for v in (*m).values_mut() {
493- | ^
493+ |
494494
495495error: you seem to want to iterate on a map's keys
496496 --> $DIR/for_loop.rs:409:5
@@ -503,7 +503,7 @@ error: you seem to want to iterate on a map's keys
503503help: use the corresponding method
504504 |
505505409 | for k in rm.keys() {
506- | ^
506+ |
507507
508508error: it looks like you're manually copying between slices
509509 --> $DIR/for_loop.rs:462:5
0 commit comments