Passing mutating async function gives unhelpful duplicate type error #112855
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
Rather than show the same type twice, rustc should explain what the actual mismatch between the two types is.
If you want to get fancy, it could explain how to pass async mutating functions properly :D
Rationale and extra context
If we find that we'll show the same type twice to the user after stringifying it, we may want to give additional context to help the user better understand what is being shown.
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: