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