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