Closed
Description
This frequently happens for code like this:
mod m {
enum MyEnum {
MyVariant
}
// Import all variants:
use MyEnum::*;
}
fn main() {}
Since this will compile when putting m
s contents into the main module, this can be quite confusing (for example when refactoring some code into it's own module).
Currently, this yields error: unresolved import
MyEnum::*. Maybe a missing
extern crate MyEnum?
. When this case is detected, the Maybe a missing
extern crate MyEnum?
probably shouldn't be printed.