superstruct icon indicating copy to clipboard operation
superstruct copied to clipboard

Reject multiple top-level attributes

Open michaelsproul opened this issue 5 months ago • 0 comments

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 https://github.com/sigp/superstruct/pull/38 and the TODO added there.

michaelsproul avatar Feb 06 '24 06:02 michaelsproul