Open
Description
When compiling:
enum E { Foo }
fn main() {
println!("{}", Foo);
}
rustc currently produces:
error[E0425]: cannot find value `Foo` in this scope
--> src/main.rs:3:20
|
3 | println!("{}", Foo);
| ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
1 | use E::Foo;
|
This is a great error message except for one thing: the enum E
is not really a "module" (even if it behaves like one for scoping purposes), so saying the candidate is "in another module" can be confusing. It would be better to modify the wording in this case.