summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/issues/issue-65159.stderr
blob: 9918f569cbc893528d5cbc7f4f0b69bd2753d43e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied
  --> $DIR/issue-65159.rs:5:20
   |
LL | async fn copy() -> Result<()>
   |                    ^^^^^^ -- supplied 1 generic argument
   |                    |
   |                    expected 2 generic arguments
   |
note: enum defined here, with 2 generic parameters: `T`, `E`
  --> $SRC_DIR/core/src/result.rs:LL:COL
   |
LL | pub enum Result<T, E> {
   |          ^^^^^^ -  -
help: add missing generic argument
   |
LL | async fn copy() -> Result<(), E>
   |                             +++

error[E0282]: type annotations needed
  --> $DIR/issue-65159.rs:8:5
   |
LL |     Ok(())
   |     ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
   |
help: consider specifying the generic arguments
   |
LL |     Ok::<(), E>(())
   |       +++++++++

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0107, E0282.
For more information about an error, try `rustc --explain E0107`.