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

Reject multiple top-level attributes #39

Open
michaelsproul opened this issue Feb 6, 2024 · 0 comments
Open

Reject multiple top-level attributes #39

michaelsproul opened this issue Feb 6, 2024 · 0 comments

Comments

@michaelsproul
Copy link
Member

This compiles while ignoring the second attribute:

#[superstruct(variants(A, B))]
#[superstruct(variants(C, D))]
struct MyThing;

We should reject it, but it's not clear how to do this. See #38 and the TODO added there.

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