Skip to content
This repository was archived by the owner on Apr 28, 2024. It is now read-only.
This repository was archived by the owner on Apr 28, 2024. It is now read-only.

Support for lifetimes #1

@magnusart

Description

@magnusart

When I try to add a lifetime generic I get a compiler error:

bty::brand!(
    pub type UserName = &'static str; // This works!
    pub type UserEmail<'a> = &'a str; // Error: no rules expected the token `<`
    // no rules expected this token in macro call
);

Suggestion: provide support for lifetime parameters.

Note! I'm new to rust so forgive me if this is a newbie mistake regarding the lifetime.

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