1
Fork 0
rust/tests/ui/suggestions/for-loop-missing-in.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
468 B
Text
Raw Normal View History

error: missing `in` in `for` loop
--> $DIR/for-loop-missing-in.rs:4:11
|
2020-07-02 14:32:12 +09:00
LL | for _i 0..2 {
| ^
|
help: try adding `in` here
|
LL | for _i in 0..2 {
| ++
error: missing `in` in `for` loop
--> $DIR/for-loop-missing-in.rs:6:12
|
LL | for _i of 0..2 {
| ^^
|
help: try using `in` here instead
|
LL - for _i of 0..2 {
LL + for _i in 0..2 {
|
error: aborting due to 2 previous errors