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