2021-01-02 19:45:11 +01:00
|
|
|
error[E0107]: this enum takes 2 type arguments but only 1 type argument was supplied
|
2019-10-09 08:50:39 -04:00
|
|
|
--> $DIR/issue-65159.rs:5:20
|
|
|
|
|
|
|
|
|
|
|
LL | async fn copy() -> Result<()>
|
2021-01-02 19:45:11 +01:00
|
|
|
| ^^^^^^ -- supplied 1 type argument
|
|
|
|
|
| |
|
|
|
|
|
| expected 2 type arguments
|
|
|
|
|
|
|
|
|
|
|
note: enum defined here, with 2 type parameters: `T`, `E`
|
|
|
|
|
--> $SRC_DIR/core/src/result.rs:LL:COL
|
|
|
|
|
|
|
|
|
|
|
LL | pub enum Result<T, E> {
|
|
|
|
|
| ^^^^^^ - -
|
|
|
|
|
help: add missing type argument
|
|
|
|
|
|
|
|
|
|
|
LL | async fn copy() -> Result<(), E>
|
|
|
|
|
| ^^^
|
2019-10-09 08:50:39 -04:00
|
|
|
|
2020-02-06 10:33:05 +01:00
|
|
|
error[E0282]: type annotations needed
|
2021-01-02 19:45:11 +01:00
|
|
|
--> $DIR/issue-65159.rs:8:5
|
2020-02-06 10:33:05 +01:00
|
|
|
|
|
|
|
|
|
LL | Ok(())
|
|
|
|
|
| ^^ cannot infer type for type parameter `E` declared on the enum `Result`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-10-09 08:50:39 -04:00
|
|
|
|
2020-02-06 10:33:05 +01:00
|
|
|
Some errors have detailed explanations: E0107, E0282.
|
|
|
|
|
For more information about an error, try `rustc --explain E0107`.
|