]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-repr-c.stderr
Rollup merge of #93603 - connorff:compute-polonius-liveness-facts-flag, r=ecstatic...
[rust.git] / src / test / ui / union / union-repr-c.stderr
1 error: `extern` block uses type `W`, which is not FFI-safe
2   --> $DIR/union-repr-c.rs:15:22
3    |
4 LL |     static FOREIGN2: W;
5    |                      ^ not FFI-safe
6    |
7 note: the lint level is defined here
8   --> $DIR/union-repr-c.rs:2:9
9    |
10 LL | #![deny(improper_ctypes)]
11    |         ^^^^^^^^^^^^^^^
12    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this union
13    = note: this union has unspecified layout
14 note: the type is defined here
15   --> $DIR/union-repr-c.rs:9:1
16    |
17 LL | / union W {
18 LL | |     a: u8,
19 LL | | }
20    | |_^
21
22 error: aborting due to previous error
23