missing hints for elided lifetime mismatch in traits and impl #94462
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.
This merge introduced a helpful hint for a (elided) lifetime mismatch error. However, we don't get the hint when the function is in a
trait
or animpl
.Given the following code:
The current output is:
But given the following:
The output is missing the hint:
Ideally the output should look like:
The text was updated successfully, but these errors were encountered: