]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-73112.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-73112.stderr
1 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2   --> $DIR/issue-73112.rs:9:5
3    |
4 LL | /     struct SomeStruct {
5 LL | |
6 LL | |         page_table: PageTable,
7 LL | |     }
8    | |_____^
9    |
10 note: `PageTable` has a `#[repr(align)]` attribute
11   --> $DIR/auxiliary/issue-73112.rs:8:1
12    |
13 LL | / pub struct PageTable {
14 LL | |     entries: [PageTableEntry; 512],
15 LL | | }
16    | |_^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0588`.