mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
451 B
Plaintext
15 lines
451 B
Plaintext
error[E0282]: type annotations needed for `Expr<'_, VAR>`
|
|
--> $DIR/issue-23046.rs:17:15
|
|
|
|
|
LL | let ex = |x| {
|
|
| ^
|
|
|
|
|
help: consider giving this closure parameter an explicit type, where the type for type parameter `VAR` is specified
|
|
|
|
|
LL | let ex = |x: Expr<'_, VAR>| {
|
|
| +++++++++++++++
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|