E0195: Bad error message on mismatched lifetimes when missing where clause #104733
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:
The current output is:
This error message, especially due to the highlighted code, makes me believe that there is some problem with the generic lifetime itself. However, the problem is the missing where bound that never appears in the error message.
Ideally, the error message should highlight the where clause of the trait that is missing from the implementation, along the lines of this:
The text was updated successfully, but these errors were encountered: