1 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2 --> $DIR/issue-43023.rs:4:5
5 | ^^^^^^^^^^^^^^^^ not applicable here
9 | |_____- not a `struct`, `enum` or `union`
11 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
12 --> $DIR/issue-43023.rs:11:5
15 | ^^^^^^^^^^^^^^^^ not applicable here
17 | ------- not a `struct`, `enum` or `union`
19 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
20 --> $DIR/issue-43023.rs:16:5
23 | ^^^^^^^^^^^^^^^^ not applicable here
25 | ------- not a `struct`, `enum` or `union`
27 error: aborting due to 3 previous errors
29 For more information about this error, try `rustc --explain E0774`.