suggestion for handling E0404 doesn't deal with multiple generics properly #112472
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
The generated constraint recommendation appears not to be aware that
TryFrom
already has defined generics and just plugs its own generic parameter at the end naively. (TryFrom<String><Error = ParseError>
)Instead it ought to recognize and expand the generic parameters (like so:
TryFrom<String, Error = ParseError>
)Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: