Skip to content

"Use" struct name interpreted as keyword; causes unsuccessful rule construction #28

@l-monninger

Description

@l-monninger

Summary

If you provide an @input struct Use(...), this token will be rewritten by the macro such that the Rust compiler reinterprets it as an invalid syntax for the use keyword.

Reproducible Example

use crepe::crepe;

crepe! {

    @input
    struct Use(i32, i32);

    @input
    struct Next(i32, i32);

}

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