fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
602 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: the lint level is 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: the type is 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