Skip to content

single_use_lifetimes should have suggestions #46944

Closed
@Manishearth

Description

@Manishearth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-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