]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/repr-transparent-other-items.stderr
Omit 'missing IndexMut impl' suggestion when IndexMut is implemented.
[rust.git] / src / test / ui / repr / repr-transparent-other-items.stderr
1 error[E0601]: `main` function not found in crate `repr_transparent_other_items`
2    |
3    = note: consider adding a `main` function to `$DIR/repr-transparent-other-items.rs`
4
5 error[E0517]: attribute should be applied to struct
6   --> $DIR/repr-transparent-other-items.rs:13:8
7    |
8 LL | #[repr(transparent)] //~ ERROR unsupported representation for zero-variant enum
9    |        ^^^^^^^^^^^
10 LL | enum Void {}         //~| ERROR should be applied to struct
11    | ------------ not a struct
12
13 error[E0517]: attribute should be applied to struct
14   --> $DIR/repr-transparent-other-items.rs:16:8
15    |
16 LL |   #[repr(transparent)] //~ ERROR should be applied to struct
17    |          ^^^^^^^^^^^
18 LL | / enum FieldlessEnum {
19 LL | |     Foo,
20 LL | |     Bar,
21 LL | | }
22    | |_- not a struct
23
24 error[E0517]: attribute should be applied to struct
25   --> $DIR/repr-transparent-other-items.rs:22:8
26    |
27 LL |   #[repr(transparent)] //~ ERROR should be applied to struct
28    |          ^^^^^^^^^^^
29 LL | / enum Enum {
30 LL | |     Foo(String),
31 LL | |     Bar(u32),
32 LL | | }
33    | |_- not a struct
34
35 error[E0517]: attribute should be applied to struct
36   --> $DIR/repr-transparent-other-items.rs:28:8
37    |
38 LL |   #[repr(transparent)] //~ ERROR should be applied to struct
39    |          ^^^^^^^^^^^
40 LL | / union Foo {
41 LL | |     u: u32,
42 LL | |     s: i32
43 LL | | }
44    | |_- not a struct
45
46 error[E0517]: attribute should be applied to struct
47   --> $DIR/repr-transparent-other-items.rs:34:8
48    |
49 LL | #[repr(transparent)] //~ ERROR should be applied to struct
50    |        ^^^^^^^^^^^
51 LL | fn cant_repr_this() {}
52    | ---------------------- not a struct
53
54 error[E0517]: attribute should be applied to struct
55   --> $DIR/repr-transparent-other-items.rs:37:8
56    |
57 LL | #[repr(transparent)] //~ ERROR should be applied to struct
58    |        ^^^^^^^^^^^
59 LL | static CANT_REPR_THIS: u32 = 0;
60    | ------------------------------- not a struct
61
62 error[E0084]: unsupported representation for zero-variant enum
63   --> $DIR/repr-transparent-other-items.rs:13:1
64    |
65 LL | #[repr(transparent)] //~ ERROR unsupported representation for zero-variant enum
66    | ^^^^^^^^^^^^^^^^^^^^
67 LL | enum Void {}         //~| ERROR should be applied to struct
68    | ------------ zero-variant enum
69
70 error: aborting due to 8 previous errors
71
72 Some errors occurred: E0084, E0517, E0601.
73 For more information about an error, try `rustc --explain E0084`.