Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example does not compile #275

Open
mabushey opened this issue Dec 22, 2023 · 0 comments
Open

Example does not compile #275

mabushey opened this issue Dec 22, 2023 · 0 comments

Comments

@mabushey
Copy link

mabushey commented Dec 22, 2023

I'm an absolute noob regarding tokio/async.

cargo build
   Compiling mysql_test v0.1.0 (/home/michael/rust/mysql_test)
error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
  --> src/main.rs:11:20
   |
11 | async fn main() -> Result<()> {
   |                    ^^^^^^ -- supplied 1 generic argument
   |                    |
   |                    expected 2 generic arguments
   |
help: add missing generic argument
   |
11 | async fn main() -> Result<(), E> {
   |                             +++

For more information about this error, try `rustc --explain E0107`.
error: could not compile `mysql_test` (bin "mysql_test") due to previous error

I suspect most experienced Rust developers could figure this out in a few seconds. It would be good to have a working example.

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant