Closed hartvon closed 2 months ago
From the instructions, ferris-says
should be at version 0.3.1
:
[dependencies]
ferris-says = "0.3.1"
You are using 0.2.1
, which can be seen on this line of your output:
--> /home/htvon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ferris-says-0.2.1/src/lib.rs:86:8
How did you add the dependency to get the outdated version?
Updating the version should fix your issue.
From the instructions,
ferris-says
should be at version0.3.1
:[dependencies] ferris-says = "0.3.1"
You are using
0.2.1
, which can be seen on this line of your output:--> /home/htvon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ferris-says-0.2.1/src/lib.rs:86:8
How did you add the dependency to get the outdated version?
Updating the version should fix your issue.
Thanks for your quick reply! This was indeed my fault, I copied the ferris-says = "0.2"
in How to use the library chapter from https://crates.io/crates/ferris-says site into the Cargo.toml file, which caused the incorrect version of ferris-says.
What needs to be fixed?
Hello, I just started learning rust, it seems like a compile error when I execute
cargo run
for the ferris-says demo in the learn/get-started page. Please verify it.The source code:
The error log:
Page(s) Affected
The get-started page: https://www.rust-lang.org/learn/get-started
Suggested Improvement
It works when I use the example code in https://crates.io/crates/ferris-says