Unsatisfied trait bound on fn item should suggest as fn()
if it is satisfied for fn pointer
#99922
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.
Given the following code: [playground]
The current output is:
Ideally the output should look like:
A more involved diagnostic example:
[playground]
The current output is:
Ideally the output should look like:
(bonus side effect: hiding the giant list of explicit variadic fn pointer impls)
The text was updated successfully, but these errors were encountered: