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

cargo run fails (with teach-rust v0.2.0) #2

Closed
rscircus opened this issue Apr 9, 2018 · 1 comment
Closed

cargo run fails (with teach-rust v0.2.0) #2

rscircus opened this issue Apr 9, 2018 · 1 comment

Comments

@rscircus
Copy link
Contributor

rscircus commented Apr 9, 2018

cargo run

on branch step1 fails with:

> cargo run
   Compiling teach-rust v0.2.0 (file:///home/rawland/src/learn-rust)
error[E0061]: this function takes 1 parameter but 0 parameters were supplied
  --> src/main.rs:8:23
   |
8  |     let xml: String = get_mta_status();
   |                       ^^^^^^^^^^^^^^^^ expected 1 parameter
...
11 | fn get_mta_status(client: Client) -> String {
   | ------------------------------------------- defined here

error: aborting due to previous error

error: Could not compile `teach-rust`.

To learn more, run the command again with --verbose.

Using rust 1.25.0 on LinuxMint 18.3 here.

@rscircus
Copy link
Contributor Author

rscircus commented Apr 10, 2018

Actually, that is part of the plan, I figured out. 😊

For anybody bumping into this:

Even though, there is a cargo run in section https://github.com/toidiu/learn-rust/#tools, this is actually part of the https://github.com/toidiu/learn-rust/#steps. The goal is to get the code compiling.

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