Closed
Description
Given the below Rust code, we can probably produce a more user friendly error message than today's "failed to resolve. Use of undeclared type or module File
".
use std::fs::File;
mod foo {
fn some_function(f: File) {}
}
It'd be nice to suggest something like "Possibly move use std::fs::File
from outer scope into module foo
". This will help beginners understand how to deal with the File
use in the parent module not being in scope within the child module.