about summary refs log tree commit diff
path: root/tests/ui/parser/unnecessary-let.stderr
blob: d75d1943f2f4e8bebfd7a35fc75a3ce5c0bb591f (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
38
error: expected pattern, found `let`
  --> $DIR/unnecessary-let.rs:4:9
   |
LL |     for let _x of [1, 2, 3] {}
   |         ^^^
   |
help: remove the unnecessary `let` keyword
   |
LL -     for let _x of [1, 2, 3] {}
LL +     for _x of [1, 2, 3] {}
   |

error: missing `in` in `for` loop
  --> $DIR/unnecessary-let.rs:4:16
   |
LL |     for let _x of [1, 2, 3] {}
   |                ^^
   |
help: try using `in` here instead
   |
LL -     for let _x of [1, 2, 3] {}
LL +     for let _x in [1, 2, 3] {}
   |

error: expected pattern, found `let`
  --> $DIR/unnecessary-let.rs:9:9
   |
LL |         let 1 => {}
   |         ^^^
   |
help: remove the unnecessary `let` keyword
   |
LL -         let 1 => {}
LL +         1 => {}
   |

error: aborting due to 3 previous errors