]> git.proxmox.com Git - rustc.git/blob - src/test/ui/union/union-repr-c.stderr
New upstream version 1.51.0+dfsg1
[rustc.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