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(|_|)
|
2023-10-11 23:20:41 +00:00
|
|
|
| ---^ expected expression
|
|
|
|
| |
|
|
|
|
| while parsing the body of this closure
|
|
|
|
|
|
|
|
|
help: you might have meant to open the body of the closure
|
|
|
|
|
|
|
|
|
LL | foo(|_| {})
|
2024-04-25 13:09:13 +02:00
|
|
|
| ++
|
2023-10-11 23:20:41 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2023-10-11 23:20:41 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2023-10-11 23:20:41 +00:00
|
|
|
For more information about this error, try `rustc --explain E0425`.
|