]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/deriving-non-type.stderr
Rollup merge of #87307 - michaelwoerister:pgo-unwind-msvc, r=nagisa
[rust.git] / src / test / ui / derives / deriving-non-type.stderr
1 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
2   --> $DIR/deriving-non-type.rs:5:1
3    |
4 LL | #[derive(PartialEq)]
5    | ^^^^^^^^^^^^^^^^^^^^ not applicable here
6 LL | trait T { }
7    | ----------- not a `struct`, `enum` or `union`
8
9 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
10   --> $DIR/deriving-non-type.rs:8:1
11    |
12 LL | #[derive(PartialEq)]
13    | ^^^^^^^^^^^^^^^^^^^^ not applicable here
14 LL | impl S { }
15    | ---------- not a `struct`, `enum` or `union`
16
17 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
18   --> $DIR/deriving-non-type.rs:11:1
19    |
20 LL | #[derive(PartialEq)]
21    | ^^^^^^^^^^^^^^^^^^^^ not applicable here
22 LL | impl T for S { }
23    | ---------------- not a `struct`, `enum` or `union`
24
25 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
26   --> $DIR/deriving-non-type.rs:14:1
27    |
28 LL | #[derive(PartialEq)]
29    | ^^^^^^^^^^^^^^^^^^^^ not applicable here
30 LL | static s: usize = 0;
31    | -------------------- not a `struct`, `enum` or `union`
32
33 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
34   --> $DIR/deriving-non-type.rs:17:1
35    |
36 LL | #[derive(PartialEq)]
37    | ^^^^^^^^^^^^^^^^^^^^ not applicable here
38 LL | const c: usize = 0;
39    | ------------------- not a `struct`, `enum` or `union`
40
41 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
42   --> $DIR/deriving-non-type.rs:20:1
43    |
44 LL | #[derive(PartialEq)]
45    | ^^^^^^^^^^^^^^^^^^^^ not applicable here
46 LL | mod m { }
47    | --------- not a `struct`, `enum` or `union`
48
49 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
50   --> $DIR/deriving-non-type.rs:23:1
51    |
52 LL | #[derive(PartialEq)]
53    | ^^^^^^^^^^^^^^^^^^^^ not applicable here
54 LL | extern "C" { }
55    | -------------- not a `struct`, `enum` or `union`
56
57 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
58   --> $DIR/deriving-non-type.rs:26:1
59    |
60 LL | #[derive(PartialEq)]
61    | ^^^^^^^^^^^^^^^^^^^^ not applicable here
62 LL | type A = usize;
63    | --------------- not a `struct`, `enum` or `union`
64
65 error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
66   --> $DIR/deriving-non-type.rs:29:1
67    |
68 LL | #[derive(PartialEq)]
69    | ^^^^^^^^^^^^^^^^^^^^ not applicable here
70 LL | fn main() { }
71    | ------------- not a `struct`, `enum` or `union`
72
73 error: aborting due to 9 previous errors
74
75 For more information about this error, try `rustc --explain E0774`.