Closed
Description
Exemple code:
mod foo {
mod hello {
pub enum world {}
}
use hello::world;
}
fn main() {
}
Error is:
<anon>:6:7: 6:12 error: unresolved import `hello::world`. Maybe a missing `extern crate hello`? [E0432]
<anon>:6 use hello::world;
^~~~~
<anon>:6:7: 6:12 help: see the detailed explanation for E0432
error: aborting due to previous error
playpen: application terminated with error code 101
The compiler should detect that "self" is missing.
Note this is an error I do all the time as a beginner.