fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.4 KiB139 linesraw
1error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
2  --> $DIR/repr-packed-contains-align.rs:22:1
3   |
4LL | struct SC(SA);
5   | ^^^^^^^^^
6   |
7note: `SA` has a `#[repr(align)]` attribute
8  --> $DIR/repr-packed-contains-align.rs:5:1
9   |
10LL | struct SA(i32);
11   | ^^^^^^^^^
12
13error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
14  --> $DIR/repr-packed-contains-align.rs:25:1
15   |
16LL | struct SD(SB);
17   | ^^^^^^^^^
18   |
19note: `SA` has a `#[repr(align)]` attribute
20  --> $DIR/repr-packed-contains-align.rs:5:1
21   |
22LL | struct SA(i32);
23   | ^^^^^^^^^
24note: `SD` contains a field of type `SB`
25  --> $DIR/repr-packed-contains-align.rs:25:11
26   |
27LL | struct SD(SB);
28   |           ^^
29note: ...which contains a field of type `SA`
30  --> $DIR/repr-packed-contains-align.rs:8:11
31   |
32LL | struct SB(SA);
33   |           ^^
34
35error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
36  --> $DIR/repr-packed-contains-align.rs:28:1
37   |
38LL | struct SE(UA);
39   | ^^^^^^^^^
40   |
41note: `UA` has a `#[repr(align)]` attribute
42  --> $DIR/repr-packed-contains-align.rs:12:1
43   |
44LL | union UA {
45   | ^^^^^^^^
46
47error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
48  --> $DIR/repr-packed-contains-align.rs:31:1
49   |
50LL | struct SF(UB);
51   | ^^^^^^^^^
52   |
53note: `UA` has a `#[repr(align)]` attribute
54  --> $DIR/repr-packed-contains-align.rs:12:1
55   |
56LL | union UA {
57   | ^^^^^^^^
58note: `SF` contains a field of type `UB`
59  --> $DIR/repr-packed-contains-align.rs:31:11
60   |
61LL | struct SF(UB);
62   |           ^^
63note: ...which contains a field of type `UA`
64  --> $DIR/repr-packed-contains-align.rs:18:5
65   |
66LL |     a: UA
67   |     ^
68
69error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
70  --> $DIR/repr-packed-contains-align.rs:34:1
71   |
72LL | union UC {
73   | ^^^^^^^^
74   |
75note: `UA` has a `#[repr(align)]` attribute
76  --> $DIR/repr-packed-contains-align.rs:12:1
77   |
78LL | union UA {
79   | ^^^^^^^^
80
81error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
82  --> $DIR/repr-packed-contains-align.rs:39:1
83   |
84LL | union UD {
85   | ^^^^^^^^
86   |
87note: `UA` has a `#[repr(align)]` attribute
88  --> $DIR/repr-packed-contains-align.rs:12:1
89   |
90LL | union UA {
91   | ^^^^^^^^
92note: `UD` contains a field of type `UB`
93  --> $DIR/repr-packed-contains-align.rs:40:5
94   |
95LL |     n: UB
96   |     ^
97note: ...which contains a field of type `UA`
98  --> $DIR/repr-packed-contains-align.rs:18:5
99   |
100LL |     a: UA
101   |     ^
102
103error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
104  --> $DIR/repr-packed-contains-align.rs:44:1
105   |
106LL | union UE {
107   | ^^^^^^^^
108   |
109note: `SA` has a `#[repr(align)]` attribute
110  --> $DIR/repr-packed-contains-align.rs:5:1
111   |
112LL | struct SA(i32);
113   | ^^^^^^^^^
114
115error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
116  --> $DIR/repr-packed-contains-align.rs:49:1
117   |
118LL | union UF {
119   | ^^^^^^^^
120   |
121note: `SA` has a `#[repr(align)]` attribute
122  --> $DIR/repr-packed-contains-align.rs:5:1
123   |
124LL | struct SA(i32);
125   | ^^^^^^^^^
126note: `UF` contains a field of type `SB`
127  --> $DIR/repr-packed-contains-align.rs:50:5
128   |
129LL |     n: SB
130   |     ^
131note: ...which contains a field of type `SA`
132  --> $DIR/repr-packed-contains-align.rs:8:11
133   |
134LL | struct SB(SA);
135   |           ^^
136
137error: aborting due to 8 previous errors
138
139For more information about this error, try `rustc --explain E0588`.