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

Improve E0432 #29517

Closed
dashed opened this issue Nov 2, 2015 · 1 comment
Closed

Improve E0432 #29517

dashed opened this issue Nov 2, 2015 · 1 comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@dashed
Copy link

dashed commented Nov 2, 2015

For the following error code: https://doc.rust-lang.org/error-index.html#E0432

I think it's useful to suggest that the following statement may be needed for main.rs:

extern crate <name>;
@apasel422 apasel422 added the A-diagnostics Area: Messages for errors, warnings, and lints label Nov 2, 2015
@durka
Copy link
Contributor

durka commented Nov 2, 2015

It actually does say that in the error message:

expr.rs:5:6: 5:15 error: unresolved import `something::Foo`. Maybe a missing `extern crate something`? [E0432]
expr.rs:5 {use something::Foo;}

But not on the error explanations page.

barosl added a commit to barosl/rust that referenced this issue Nov 12, 2015
The command-line error message for E0432 does mention the possibility of
missing the `extern crate` declaration, but the detailed error message
for it doesn't.

Fixes rust-lang#29517.
steveklabnik added a commit to steveklabnik/rust that referenced this issue Nov 16, 2015
…te, r=steveklabnik

The command-line error message for E0432 does mention the possibility of missing the `extern crate` declaration, but the detailed error message for it doesn't.

Fixes rust-lang#29517.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

3 participants