single-use-lifetimes may remove attributes of wrong lifetime? #105031
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
It's trying to remove the attribute of lifetime
'b
when removing lifetime'a
and causes a compiler error all in all:
The text was updated successfully, but these errors were encountered: