]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-repr-c.stderr
Rollup merge of #103023 - andrewpollack:i-fuchsia-finals, r=tmandry
[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    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this union
8    = note: this union has unspecified layout
9 note: the type is defined here
10   --> $DIR/union-repr-c.rs:9:1
11    |
12 LL | union W {
13    | ^^^^^^^
14 note: the lint level is defined here
15   --> $DIR/union-repr-c.rs:2:9
16    |
17 LL | #![deny(improper_ctypes)]
18    |         ^^^^^^^^^^^^^^^
19
20 error: aborting due to previous error
21