Rust Getting Started Page Error

#1

Is it necessary to include the extern crate ferris_says; in the application apart from use ferris_says::say;

The documentation does not point this out anywhere and the first test program that I copy pasted showed error message.

0 Likes

#2

I believe that they forgot to tell you to add edition = "2018" to your Cargo.toml, which changes the module/namespace resolution schemes in rust, would you mind making an issue at the rust website repo?

0 Likes

#3

If you create a new project with the version of Cargo included in Rust 1.31 and above, it automatically adds edition = "2018" to the Cargo.toml - you shouldn’t have to do it manually.

@praveer: Do you have the most up-to-date version of Rust installed?

2 Likes