1
Fork 0

Mention the syntax for use on mod foo; if foo doesn't exist

Newcomers might get confused that `mod` is the only way of defining
scopes, and that it can be used as if it were `use`.

Fix #69492.
This commit is contained in:
Esteban Küber 2023-10-20 20:03:44 +00:00
parent cc705b8012
commit 2cca435717
12 changed files with 13 additions and 0 deletions

View file

@ -350,6 +350,7 @@ pub(crate) struct ModuleInBlockName {
#[derive(Diagnostic)]
#[diag(expand_module_file_not_found, code = "E0583")]
#[help]
#[note]
pub(crate) struct ModuleFileNotFound {
#[primary_span]
pub span: Span,