1 error[E0774]: `derive` may only be applied to structs, enums and unions
2 --> $DIR/derive-on-trait-item-or-impl-item.rs:2:5
7 error[E0774]: `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
15 For more information about this error, try `rustc --explain E0774`.