rust/tests/ui/issues/issue-23046.stderr

15 lines
449 B
Plaintext
Raw Normal View History

2020-10-19 16:58:44 +00:00
error[E0282]: type annotations needed for `Expr<'_, VAR>`
--> $DIR/issue-23046.rs:17:15
2018-07-15 21:11:54 +00:00
|
2020-10-19 16:58:44 +00:00
LL | let ex = |x| {
2022-02-14 12:25:26 +00:00
| ^
|
help: consider giving this closure parameter an explicit type, where the type for type parameter `VAR` is specified
|
LL | let ex = |x: Expr<'_, VAR>| {
| +++++++++++++++
2018-07-15 21:11:54 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.