"main
function is not allowed to have generic parameters" when the parameter is a reference
#118772
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
It is less clear to display the E0131 message for the situation, because it it's about generic parameters. Eg to quote from
rustc --explain E0131
:Whereas
rustc --explain E0580
explains:Other cases
No response
Anything else?
Additionally, neither error is output when the command run is
cargo test
; which is probably erroneous behavior, ascheck
,clippy
,build
, andrun
.The text was updated successfully, but these errors were encountered: