Skip to content

Explicit lifetimes #389

@nrc

Description

@nrc

Currently in Rust lifetimes must be inferred. It would be nice to be able to name all lifetimes and be able to pass explicit, actual lifetime parameters to functions and data types. This is useful for 'debugging' type/borrow check errors. For lexically scoped lifetimes, this probably just means naming scopes. For non-lexically scoped lifetimes, this will be more challenging. We might not be able to do better than naming upper and lower bounds for the lifetime with named scopes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lifetimesLifetime related proposals.A-syntaxSyntax related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.postponedRFCs that have been postponed and may be revisited at a later time.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions