]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-65159.stderr
Merge commit '7b73b60faca71d01d900e49831fcb84553e93019' into sync-rustfmt
[rust.git] / src / test / ui / async-await / issues / issue-65159.stderr
1 error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied
2   --> $DIR/issue-65159.rs:5:20
3    |
4 LL | async fn copy() -> Result<()>
5    |                    ^^^^^^ -- supplied 1 generic argument
6    |                    |
7    |                    expected 2 generic arguments
8    |
9 note: enum defined here, with 2 generic parameters: `T`, `E`
10   --> $SRC_DIR/core/src/result.rs:LL:COL
11    |
12 LL | pub enum Result<T, E> {
13    |          ^^^^^^ -  -
14 help: add missing generic argument
15    |
16 LL | async fn copy() -> Result<(), E>
17    |                             +++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0107`.