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