Skip to content

gen is a reserved keyword in Rust 2024 #4

@DanikVitek

Description

@DanikVitek

As was mentioned in #3, gen is now a reserved keyword in Rust 2024.

The solution to both preserve backwards compatibility, and ensure forwards compatibility is to use the following raw lifetimes syntax: 'r#gen.

This way, 2021 crates will still be able to use 'gen syntax, and 2024 crates will be able to compile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions