Misleading error message when ambiguity between a function and module is introduced #71406
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name resolution
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given this code (playground):
I expected that
rustc
would indicate thatnew()
is not function butchannel(1)
is. Instead, I got:A diagnostic along the lines of
new(..)
isn't a function, butchannel(..)
is would be helpful.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: