Misleading error message "unresolved import. maybe a missing extern mod extra
?"
#7583
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
The following code does not build on Rust 0.7:
Output:
Moving
extern mode extra;
to the crate top level fixes the issue. The current error message is very confusing at best, especially if the module is a separate .rs file.Please either change
extern mod foo;
to work in modules, or make it an error. Don’t ignore it silently.UPDATE: See comments below.
The text was updated successfully, but these errors were encountered: