1 error[E0601]: `main` function not found in crate `repr_transparent_other_items`
3 = note: consider adding a `main` function to `$DIR/repr-transparent-other-items.rs`
5 error[E0517]: attribute should be applied to struct
6 --> $DIR/repr-transparent-other-items.rs:13:8
8 LL | #[repr(transparent)] //~ ERROR unsupported representation for zero-variant enum
10 LL | enum Void {} //~| ERROR should be applied to struct
11 | ------------ not a struct
13 error[E0517]: attribute should be applied to struct
14 --> $DIR/repr-transparent-other-items.rs:16:8
16 LL | #[repr(transparent)] //~ ERROR should be applied to struct
18 LL | / enum FieldlessEnum {
24 error[E0517]: attribute should be applied to struct
25 --> $DIR/repr-transparent-other-items.rs:22:8
27 LL | #[repr(transparent)] //~ ERROR should be applied to struct
35 error[E0517]: attribute should be applied to struct
36 --> $DIR/repr-transparent-other-items.rs:28:8
38 LL | #[repr(transparent)] //~ ERROR should be applied to struct
46 error[E0517]: attribute should be applied to struct
47 --> $DIR/repr-transparent-other-items.rs:34:8
49 LL | #[repr(transparent)] //~ ERROR should be applied to struct
51 LL | fn cant_repr_this() {}
52 | ---------------------- not a struct
54 error[E0517]: attribute should be applied to struct
55 --> $DIR/repr-transparent-other-items.rs:37:8
57 LL | #[repr(transparent)] //~ ERROR should be applied to struct
59 LL | static CANT_REPR_THIS: u32 = 0;
60 | ------------------------------- not a struct
62 error[E0084]: unsupported representation for zero-variant enum
63 --> $DIR/repr-transparent-other-items.rs:13:1
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
70 error: aborting due to 8 previous errors
72 Some errors occurred: E0084, E0517, E0601.
73 For more information about an error, try `rustc --explain E0084`.