2018-08-08 12:28:26 +00:00
|
|
|
error: `extern` block uses type `W` which is not FFI-safe: this union has unspecified layout
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/union-repr-c.rs:15:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | static FOREIGN2: W;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/union-repr-c.rs:2:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(improper_ctypes)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2019-05-22 14:31:09 +00:00
|
|
|
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this union
|
2018-08-08 12:28:26 +00:00
|
|
|
note: type defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/union-repr-c.rs:9:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | / union W {
|
|
|
|
LL | | a: u8,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|