Detect cases of lifetime errors caused by closures using a lifetime of its enclosing item and suggest anon lifetime #100572
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
compiles on 1.63 but will stop compiling in 1.64 with the following error because of #98835 (comment) (#100544):
We should detect cases of lifetime errors caused by closures using a lifetime of its enclosing item and suggest using an anonymous lifetime when appropriate to make the code compile.
The text was updated successfully, but these errors were encountered: