Closed
Description
The following code, when compiled in Rust 2018, errors out (as expected). However, the error could be more helpful.
mod foo {
type Bar = u32;
}
use foo::Bar;
fn main() {
let x: Bar = 22;
}
Error:
error[E0463]: can't find crate for `foo`
--> src/main.rs:5:5
|
5 | use foo::Bar;
| ^^^ can't find crate
error: aborting due to previous error
but I think we should suggest something like
did you mean `crate::foo::Bar`?