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

23 lines
577 B
Plaintext
Raw Normal View History

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