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