2021-01-28 18:01:36 +02:00
|
|
|
error[E0282]: type annotations needed for `Result<(), E>`
|
2020-12-29 00:10:13 -05:00
|
|
|
--> $DIR/cannot-infer-closure-circular.rs:7:14
|
|
|
|
|
|
|
|
|
LL | let x = |r| {
|
2021-01-28 18:01:36 +02:00
|
|
|
| ^ consider giving this closure parameter the explicit type `Result<(), E>`, with the type parameters specified
|
2020-12-29 00:10:13 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|