Do not suggest adding a new lifetime bound in returned impl Trait if 'static is already specified in the signature #67910
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following error
rust/src/test/ui/impl-trait/must_outlive_least_region_or_bound.stderr
Lines 37 to 53 in 0731573
should instead suggest changing the explicit
'static
bound or not provide a suggestion at all.Follow up to #67595.
The text was updated successfully, but these errors were encountered: