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