1
Fork 0
rust/tests/ui/parser/issues/issue-32505.stderr

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

23 lines
564 B
Text
Raw Normal View History

2018-10-20 23:36:17 +03:00
error: expected expression, found `)`
2019-05-31 13:50:04 -07:00
--> $DIR/issue-32505.rs:2:12
2018-10-20 23:36:17 +03:00
|
2019-03-09 15:03:44 +03:00
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
2018-10-20 23:36:17 +03:00
error: aborting due to 2 previous errors
2018-10-20 23:36:17 +03:00
For more information about this error, try `rustc --explain E0425`.