Closed
Description
Something like this should really produce a better error message:
mod foo {
extern mod extra;
use foo::extra;
}
/////////////////////////////////
//The error:
//bug-testing.rs:4:6: 4:16 error: unresolved import
//bug-testing.rs:4 use foo::extra;
// ^~~~~~~~~~
//error: aborting due to previous error
//////////////////////////////////
Not sure whether current compiler state makes it difficult to identify this and other reasons for failed resolution, but if it's fairly simple better error messages would be great.