1 error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied
2 --> $DIR/issue-65159.rs:5:20
4 LL | async fn copy() -> Result<()>
5 | ^^^^^^ -- supplied 1 generic argument
7 | expected 2 generic arguments
9 note: enum defined here, with 2 generic parameters: `T`, `E`
10 --> $SRC_DIR/core/src/result.rs:LL:COL
12 LL | pub enum Result<T, E> {
14 help: add missing generic argument
16 LL | async fn copy() -> Result<(), E>
19 error[E0282]: type annotations needed
20 --> $DIR/issue-65159.rs:8:5
23 | ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
25 help: consider specifying the generic arguments
30 error: aborting due to 2 previous errors
32 Some errors have detailed explanations: E0107, E0282.
33 For more information about an error, try `rustc --explain E0107`.