2020-09-10 13:54:17 -05:00
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/repr-transparent-other-items.rs:3:8
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[repr(transparent)]
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
LL | fn cant_repr_this() {}
|
2019-05-22 09:31:09 -05:00
|
|
|
| ---------------------- not a struct, enum, or union
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-09-10 13:54:17 -05:00
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
2019-05-22 09:31:09 -05:00
|
|
|
--> $DIR/repr-transparent-other-items.rs:6:8
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[repr(transparent)]
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
LL | static CANT_REPR_THIS: u32 = 0;
|
2019-05-22 09:31:09 -05:00
|
|
|
| ------------------------------- not a struct, enum, or union
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-05-22 09:31:09 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-05-22 09:31:09 -05:00
|
|
|
For more information about this error, try `rustc --explain E0517`.
|