Skip to content

Example code does not compile. #651

@joboscribe

Description

@joboscribe

Technical Bug Report

Your Environment

| Software | Version(s) |
| Rust | 1.30.1 |
| Form Factor | Desktop |
| Browser Type | Chrome |
| Browser Version | 70.0.3538.110 |

Is this an issue with Rust, CSS, or HTML (or a combination)?

I'm going to say HTML.

Expected Behavior

If i correctly followed (or copy/pasted) the code example under the heading "A Small Rust Application" then i should be able to compile and run the sample program.

Current Behavior

Compiling the sample code results in:

error[E0432]: unresolved import `ferris_says`
 --> src/main.rs:1:5
  |
1 | use ferris_says::say; // from the previous step
  |     ^^^^^^^^^^^ Maybe a missing `extern crate ferris_says;`?

error: aborting due to previous error

Step to Reproduce

Follow the instructions on the /learn/get-started page through the "A Small Rust Application" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions