1 error: `derive` may only be applied to structs, enums and unions
2 --> $DIR/derive-on-trait-item-or-impl-item.rs:2:5
7 error: `derive` may only be applied to structs, enums and unions
8 --> $DIR/derive-on-trait-item-or-impl-item.rs:10:5
13 error: aborting due to 2 previous errors