about summary refs log tree commit diff
path: root/tests/ui/suggestions/for-loop-missing-in.stderr
blob: b9c8c39340681555da3812f7afc88eb07851d546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
error: missing `in` in `for` loop
  --> $DIR/for-loop-missing-in.rs:4:11
   |
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:5: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: missing `in` in `for` loop
  --> $DIR/for-loop-missing-in.rs:6:12
   |
LL |     for _i = 0..2 {}
   |            ^
   |
help: try using `in` here instead
   |
LL -     for _i = 0..2 {}
LL +     for _i in 0..2 {}
   |

error: aborting due to 3 previous errors