fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
655 B19 linesraw
1error[E0517]: attribute should be applied to struct or enum
2  --> $DIR/repr-no-niche-inapplicable-to-unions.rs:6:8
3   |
4LL | #[repr(no_niche)]
5   |        ^^^^^^^^
6LL | pub union Cloaked1 { _A: N16 }
7   | ------------------------------ not a struct or enum
8
9error[E0517]: attribute should be applied to struct or enum
10  --> $DIR/repr-no-niche-inapplicable-to-unions.rs:10:8
11   |
12LL | #[repr(no_niche)]
13   |        ^^^^^^^^
14LL | pub union Cloaked2 { _A: N16, _B: (u8, N8) }
15   | -------------------------------------------- not a struct or enum
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0517`.