mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
24 lines
600 B
Plaintext
24 lines
600 B
Plaintext
error: attribute should be applied to `#[repr(transparent)]` types
|
|
--> $DIR/rustc_pub_transparent.rs:14:1
|
|
|
|
|
LL | #[rustc_pub_transparent]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL | #[repr(C)]
|
|
LL | / struct S1 {
|
|
LL | | A: u8,
|
|
LL | | }
|
|
| |_- not a `#[repr(transparent)]` type
|
|
|
|
error: attribute should be applied to `#[repr(transparent)]` types
|
|
--> $DIR/rustc_pub_transparent.rs:20:1
|
|
|
|
|
LL | #[rustc_pub_transparent]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
LL | / struct S2<T> {
|
|
LL | | value: T,
|
|
LL | | }
|
|
| |_- not a `#[repr(transparent)]` type
|
|
|
|
error: aborting due to 2 previous errors
|
|
|