Treating fn
as trait emits many unhelpful errors
#82515
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
Ideally the output should look like:
Related diagnostics
The issue also affects return-position impls, where more helpful guidance could be given
The text was updated successfully, but these errors were encountered: