1 error[E0517]: attribute should be applied to struct, enum, or union
2 --> $DIR/repr-transparent-other-items.rs:3:8
4 LL | #[repr(transparent)]
6 LL | fn cant_repr_this() {}
7 | ---------------------- not a struct, enum, or union
9 error[E0517]: attribute should be applied to struct, enum, or union
10 --> $DIR/repr-transparent-other-items.rs:6:8
12 LL | #[repr(transparent)]
14 LL | static CANT_REPR_THIS: u32 = 0;
15 | ------------------------------- not a struct, enum, or union
17 error: aborting due to 2 previous errors
19 For more information about this error, try `rustc --explain E0517`.