Skip to content

Use impl trait in library macro #5

@JayPavlina

Description

@JayPavlina

I am trying to do this:

reflect::library! {
    extern crate hashing {
        type Hasher;

        trait Hashable {
            fn hash(&self, &mut impl Hasher);
        }

        macro write;
    }
}

However, it will not accept the impl keyword. Is there any way to make it work, or do I have to use a type parameter instead?

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