Skip to content

Commit 553d01d

Browse files
committed
Update ui/for_loop test output
1 parent 2e9172a commit 553d01d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/ui/for_loop.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ error: the loop variable `j` is only used to index `STATIC`.
9797
| ^^^^
9898
help: consider using an iterator
9999
|
100-
110 | for <item> in STATIC.iter().take(4) {
101-
| ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
100+
110 | for <item> in &STATIC {
101+
| ^^^^^^ ^^^^^^^
102102

103103
error: the loop variable `j` is only used to index `CONST`.
104104
--> $DIR/for_loop.rs:114:14
@@ -107,8 +107,8 @@ error: the loop variable `j` is only used to index `CONST`.
107107
| ^^^^
108108
help: consider using an iterator
109109
|
110-
114 | for <item> in CONST.iter().take(4) {
111-
| ^^^^^^ ^^^^^^^^^^^^^^^^^^^^
110+
114 | for <item> in &CONST {
111+
| ^^^^^^ ^^^^^^
112112

113113
error: the loop variable `i` is used to index `vec`
114114
--> $DIR/for_loop.rs:118:14

0 commit comments

Comments
 (0)