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