2022-02-14 13:25:26 +01:00
|
|
|
error[E0282]: type annotations needed
|
2021-04-17 11:56:07 -07:00
|
|
|
--> $DIR/cannot-infer-closure.rs:4:9
|
2019-08-12 16:50:46 -07:00
|
|
|
|
|
2021-04-17 11:56:07 -07:00
|
|
|
LL | Ok(b)
|
2022-02-14 13:25:26 +01:00
|
|
|
| ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2022-02-14 13:25:26 +01:00
|
|
|
help: consider specifying the generic arguments
|
2019-08-13 16:41:43 -07:00
|
|
|
|
|
2022-02-14 13:25:26 +01:00
|
|
|
LL | Ok::<(), E>(b)
|
|
|
|
| +++++++++
|
2019-08-12 16:50:46 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|