rust/src/test/ui/union/union-repr-c.stderr

24 lines
588 B
Plaintext
Raw Normal View History

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