mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
Update ui/for_loop
test output
This commit is contained in:
parent
2e9172aea2
commit
553d01d9c7
1 changed files with 4 additions and 4 deletions
|
@ -97,8 +97,8 @@ error: the loop variable `j` is only used to index `STATIC`.
|
|||
| ^^^^
|
||||
help: consider using an iterator
|
||||
|
|
||||
110 | for <item> in STATIC.iter().take(4) {
|
||||
| ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
|
||||
110 | for <item> in &STATIC {
|
||||
| ^^^^^^ ^^^^^^^
|
||||
|
||||
error: the loop variable `j` is only used to index `CONST`.
|
||||
--> $DIR/for_loop.rs:114:14
|
||||
|
@ -107,8 +107,8 @@ error: the loop variable `j` is only used to index `CONST`.
|
|||
| ^^^^
|
||||
help: consider using an iterator
|
||||
|
|
||||
114 | for <item> in CONST.iter().take(4) {
|
||||
| ^^^^^^ ^^^^^^^^^^^^^^^^^^^^
|
||||
114 | for <item> in &CONST {
|
||||
| ^^^^^^ ^^^^^^
|
||||
|
||||
error: the loop variable `i` is used to index `vec`
|
||||
--> $DIR/for_loop.rs:118:14
|
||||
|
|
Loading…
Reference in a new issue