Skip to content

[NLL] Loss of 'static relaxation suggestion under NLL #95701

Closed
@jackh726

Description

@jackh726

In the src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.rs test, we give the suggestion consider relaxing the implicit `'static` requirement under migrate mode. Under NLL, we lose that suggestion, and have a slightly less user-friendly error message.

Importantly, with the suggestion, the code is rustfix-able. Without the suggestion, it is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-NLLArea: Non-lexical lifetimes (NLL)A-diagnosticsArea: Messages for errors, warnings, and lintsNLL-diagnosticsWorking towards the "diagnostic parity" goalT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions