Skip to content

Disallow (most) reserved/keywords as lifetime names #10565

Closed
@huonw

Description

@huonw

e.g.

fn a<'type, 'struct, 'fn>() {}

is currently valid, but shouldn't be. (Note that 'static is, and should remain, a valid lifetime.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lifetimesArea: Lifetimes / regionsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions