1 error[E0517]: attribute should be applied to struct, enum or union
7 | -------------- not a struct, enum or union
9 error[E0517]: attribute should be applied to struct or union
14 LL | enum Foo2 {Bar, Baz}
15 | -------------------- not a struct or union
17 error[E0517]: attribute should be applied to enum
22 LL | struct Foo3 {bar: bool, baz: bool}
23 | ---------------------------------- not an enum
25 error[E0517]: attribute should be applied to struct, enum or union
26 --> $DIR/E0517.rs:10:8
32 | |_- not a struct, enum or union
34 error: aborting due to 4 previous errors
36 For more information about this error, try `rustc --explain E0517`.