]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/repr-no-niche-inapplicable-to-unions.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / repr / repr-no-niche-inapplicable-to-unions.stderr
1 error[E0517]: attribute should be applied to a struct or enum
2   --> $DIR/repr-no-niche-inapplicable-to-unions.rs:6:8
3    |
4 LL | #[repr(no_niche)]
5    |        ^^^^^^^^
6 LL | pub union Cloaked1 { _A: N16 }
7    | ------------------------------ not a struct or enum
8
9 error[E0517]: attribute should be applied to a struct or enum
10   --> $DIR/repr-no-niche-inapplicable-to-unions.rs:10:8
11    |
12 LL | #[repr(no_niche)]
13    |        ^^^^^^^^
14 LL | pub union Cloaked2 { _A: N16, _B: (u8, N8) }
15    | -------------------------------------------- not a struct or enum
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0517`.