fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
588 B23 linesraw
1error: `extern` block uses type `W`, which is not FFI-safe
2  --> $DIR/union-repr-c.rs:15:22
3   |
4LL |     static FOREIGN2: W;
5   |                      ^ not FFI-safe
6   |
7note: lint level defined here
8  --> $DIR/union-repr-c.rs:2:9
9   |
10LL | #![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
14note: type defined here
15  --> $DIR/union-repr-c.rs:9:1
16   |
17LL | / union W {
18LL | |     a: u8,
19LL | | }
20   | |_^
21
22error: aborting due to previous error
23