ekzhang/crepe

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

Opened this issue · 0 comments

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);

}