Improve compiler help for missing module error (E0583) #84819
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I created a fresh project with
cargo init
, a new empty folderuser
and my main.rs looks as following:
If I execute
cargo run
, the compiler gives me the help:Since I created a folder
user
the compiler could also suggest adding asrc\user\mod.rs
.My suggested help for this case would be:
The compiler could always show this help, not only if there is a folder with that name.
The text was updated successfully, but these errors were encountered: