Skip to content

Allow lifetime usage in custom_derive! macro #27

@Nimamoh

Description

@Nimamoh

Hello,

I recently tried the custom derive with derive_builder on a lifetimed struct like this:

custom_derive! {
    #[derive(Debug, PartialEq, Default, Clone, Builder)]
    struct Another<'a> {
        title: &'a str,
    }
}

The rust compiler gives me this error:

error�: expected ident, found 'a�

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