2019-09-10 22:29:31 +01:00
|
|
|
error: `extern` block uses type `W`, which is not FFI-safe
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/union-repr-c.rs:15:22
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | static FOREIGN2: W;
|
2019-09-10 22:29:31 +01:00
|
|
|
| ^ not FFI-safe
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-05-22 07:31:09 -07:00
|
|
|
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this union
|
2019-09-10 22:29:31 +01:00
|
|
|
= note: this union has unspecified layout
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the type is defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/union-repr-c.rs:9:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2022-02-13 16:27:59 +01:00
|
|
|
LL | union W {
|
|
|
|
| ^^^^^^^
|
2022-09-18 19:55:36 +04:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/union-repr-c.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(improper_ctypes)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|