Closed
Description
For this kind of error:
pub mod foo {
struct Foo;
}
fn main() {
let a = Foo;
}
We get an error like
error[E0425]: cannot find value `Foo` in this scope
--> <anon>:10:14
|
10 | let a = Foo;
| ^^^ not found in this scope
|
help: possible candidate is found in another module, you can import it into scope
| use foo::Foo;
Which is good. But if you put this whole example in a submodule and then look at the json error, the suggestion is add the import to the enclosing module, not the submodule, which is incorrect.