File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ error: the loop variable `j` is only used to index `STATIC`.
97
97
| ^^^^
98
98
help: consider using an iterator
99
99
|
100
- 110 | for <item> in STATIC.iter().take(4) {
101
- | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
100
+ 110 | for <item> in & STATIC {
101
+ | ^^^^^^ ^^^^^^^
102
102
103
103
error: the loop variable `j` is only used to index `CONST`.
104
104
--> $DIR/for_loop.rs:114:14
@@ -107,8 +107,8 @@ error: the loop variable `j` is only used to index `CONST`.
107
107
| ^^^^
108
108
help: consider using an iterator
109
109
|
110
- 114 | for <item> in CONST.iter().take(4) {
111
- | ^^^^^^ ^^^^^^^^^^^^^^^^^^^^
110
+ 114 | for <item> in & CONST {
111
+ | ^^^^^^ ^^^^^^
112
112
113
113
error: the loop variable `i` is used to index `vec`
114
114
--> $DIR/for_loop.rs:118:14
You can’t perform that action at this time.
0 commit comments