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