Don't hint to add a lifetime parameter for trait impls #37363
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Spotted on a reddit thread (https://www.reddit.com/r/rust/comments/57virt/hey_rustaceans_got_an_easy_question_ask_here/d941p6y/?context=3).
This code (playpen):
Gives the following hint:
Which is never correct, since then there will be a lifetime mismatch between the impl and the trait.
The text was updated successfully, but these errors were encountered: