1 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2 --> $DIR/derive-on-trait-item-or-impl-item.rs:2:5
5 | ^^^^^^^^^^^^^^^^ not applicable here
8 | --------- not a `struct`, `enum` or `union`
10 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
11 --> $DIR/derive-on-trait-item-or-impl-item.rs:10:5
14 | ^^^^^^^^^^^^^^^^ not applicable here
17 | ---------------- not a `struct`, `enum` or `union`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0774`.