single_use_lifetimes should have suggestions #46944
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.
This is a new feature, we should be teaching it through error messages.
Currently we just say that a lifetime is single use but do not recommend how to fix it. It leads to confusions like #46873
We should fix that.
The text was updated successfully, but these errors were encountered: