Files
rust/tests/ui/async-await/issues/issue-65159.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
856 B
Plaintext
Raw Normal View History

error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
--> $DIR/issue-65159.rs:5:20
|
LL | async fn copy() -> Result<()>
2021-02-18 21:01:44 +01:00
| ^^^^^^ -- supplied 1 generic argument
| |
2021-02-18 21:01:44 +01:00
| expected 2 generic arguments
|
2021-02-18 21:01:44 +01:00
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`.