2022-07-01 15:49:05 +02:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/cannot-infer-partial-try-return.rs:20:9
|
2020-12-29 00:10:13 -05:00
|
|
|
|
|
2022-07-01 15:49:05 +02:00
|
|
|
LL | Ok(())
|
|
|
|
| ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
|
2022-05-24 09:57:14 +02:00
|
|
|
|
|
2022-07-01 15:49:05 +02:00
|
|
|
help: consider specifying the generic arguments
|
2022-05-24 09:57:14 +02:00
|
|
|
|
|
2022-07-01 15:49:05 +02:00
|
|
|
LL | Ok::<(), QualifiedError<_>>(())
|
|
|
|
| +++++++++++++++++++++++++
|
2020-12-29 00:10:13 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|