1 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2 --> $DIR/deriving-non-type.rs:5:1
4 LL | #[derive(PartialEq)]
5 | ^^^^^^^^^^^^^^^^^^^^ not applicable here
7 | ----------- not a `struct`, `enum` or `union`
9 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
10 --> $DIR/deriving-non-type.rs:8:1
12 LL | #[derive(PartialEq)]
13 | ^^^^^^^^^^^^^^^^^^^^ not applicable here
15 | ---------- not a `struct`, `enum` or `union`
17 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
18 --> $DIR/deriving-non-type.rs:11:1
20 LL | #[derive(PartialEq)]
21 | ^^^^^^^^^^^^^^^^^^^^ not applicable here
23 | ---------------- not a `struct`, `enum` or `union`
25 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
26 --> $DIR/deriving-non-type.rs:14:1
28 LL | #[derive(PartialEq)]
29 | ^^^^^^^^^^^^^^^^^^^^ not applicable here
30 LL | static s: usize = 0;
31 | -------------------- not a `struct`, `enum` or `union`
33 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
34 --> $DIR/deriving-non-type.rs:17:1
36 LL | #[derive(PartialEq)]
37 | ^^^^^^^^^^^^^^^^^^^^ not applicable here
38 LL | const c: usize = 0;
39 | ------------------- not a `struct`, `enum` or `union`
41 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
42 --> $DIR/deriving-non-type.rs:20:1
44 LL | #[derive(PartialEq)]
45 | ^^^^^^^^^^^^^^^^^^^^ not applicable here
47 | --------- not a `struct`, `enum` or `union`
49 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
50 --> $DIR/deriving-non-type.rs:23:1
52 LL | #[derive(PartialEq)]
53 | ^^^^^^^^^^^^^^^^^^^^ not applicable here
55 | -------------- not a `struct`, `enum` or `union`
57 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
58 --> $DIR/deriving-non-type.rs:26:1
60 LL | #[derive(PartialEq)]
61 | ^^^^^^^^^^^^^^^^^^^^ not applicable here
63 | --------------- not a `struct`, `enum` or `union`
65 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
66 --> $DIR/deriving-non-type.rs:29:1
68 LL | #[derive(PartialEq)]
69 | ^^^^^^^^^^^^^^^^^^^^ not applicable here
71 | ------------- not a `struct`, `enum` or `union`
73 error: aborting due to 9 previous errors
75 For more information about this error, try `rustc --explain E0774`.