Confusing diagnostic when argument type in impl FnOnce() is not found #113566
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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
Saying that
impl FnOnce()
is not a function is confusing and distracts from the real issue. I think compiler should either report nothing on the line with the call or say something about unknown types in function signature.Other cases
Anything else?
No response
The text was updated successfully, but these errors were encountered: