summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/unnecessary-let.stderr
blob: 952119cae3e27b44e6d36b3232f132ee55b25d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: expected pattern, found `let`
  --> $DIR/unnecessary-let.rs:2:9
   |
LL |     for let x of [1, 2, 3] {}
   |         ^^^ help: remove the unnecessary `let` keyword

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

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

error: aborting due to 3 previous errors