Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
l-monninger opened this issue Dec 5, 2023 · 0 comments

Comments

@l-monninger
Copy link

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

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant