summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-32505.stderr
blob: 27ad2c3e5be116d853773f679f35d24b5709a467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: expected expression, found `)`
  --> $DIR/issue-32505.rs:2:12
   |
LL |     foo(|_|)
   |         ---^ expected expression
   |         |
   |         while parsing the body of this closure
   |
help: you might have meant to open the body of the closure
   |
LL |     foo(|_| {})
   |            ++

error[E0425]: cannot find function `foo` in this scope
  --> $DIR/issue-32505.rs:2:5
   |
LL |     foo(|_|)
   |     ^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.