]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/repr-packed-contains-align.stderr
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[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:19: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:22: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:22:11
26    |
27 LL | struct SD(SB);
28    |           ^^
29 note: ...which contains a field of type `SA`
30   --> $DIR/repr-packed-contains-align.rs:7: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:25:1
37    |
38 LL | struct SE(UA);
39    | ^^^^^^^^^^^^^^
40    |
41 note: `UA` has a `#[repr(align)]` attribute
42   --> $DIR/repr-packed-contains-align.rs:10:1
43    |
44 LL | / union UA {
45 LL | |     i: i32
46 LL | | }
47    | |_^
48
49 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
50   --> $DIR/repr-packed-contains-align.rs:28:1
51    |
52 LL | struct SF(UB);
53    | ^^^^^^^^^^^^^^
54    |
55 note: `UA` has a `#[repr(align)]` attribute
56   --> $DIR/repr-packed-contains-align.rs:10:1
57    |
58 LL | / union UA {
59 LL | |     i: i32
60 LL | | }
61    | |_^
62 note: `SF` contains a field of type `UB`
63   --> $DIR/repr-packed-contains-align.rs:28:11
64    |
65 LL | struct SF(UB);
66    |           ^^
67 note: ...which contains a field of type `UA`
68   --> $DIR/repr-packed-contains-align.rs:15:5
69    |
70 LL |     a: UA
71    |     ^
72
73 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
74   --> $DIR/repr-packed-contains-align.rs:31:1
75    |
76 LL | / union UC {
77 LL | |     a: UA
78 LL | | }
79    | |_^
80    |
81 note: `UA` has a `#[repr(align)]` attribute
82   --> $DIR/repr-packed-contains-align.rs:10:1
83    |
84 LL | / union UA {
85 LL | |     i: i32
86 LL | | }
87    | |_^
88
89 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
90   --> $DIR/repr-packed-contains-align.rs:36:1
91    |
92 LL | / union UD {
93 LL | |     n: UB
94 LL | | }
95    | |_^
96    |
97 note: `UA` has a `#[repr(align)]` attribute
98   --> $DIR/repr-packed-contains-align.rs:10:1
99    |
100 LL | / union UA {
101 LL | |     i: i32
102 LL | | }
103    | |_^
104 note: `UD` contains a field of type `UB`
105   --> $DIR/repr-packed-contains-align.rs:37:5
106    |
107 LL |     n: UB
108    |     ^
109 note: ...which contains a field of type `UA`
110   --> $DIR/repr-packed-contains-align.rs:15:5
111    |
112 LL |     a: UA
113    |     ^
114
115 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
116   --> $DIR/repr-packed-contains-align.rs:41:1
117    |
118 LL | / union UE {
119 LL | |     a: SA
120 LL | | }
121    | |_^
122    |
123 note: `SA` has a `#[repr(align)]` attribute
124   --> $DIR/repr-packed-contains-align.rs:5:1
125    |
126 LL | struct SA(i32);
127    | ^^^^^^^^^^^^^^^
128
129 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
130   --> $DIR/repr-packed-contains-align.rs:46:1
131    |
132 LL | / union UF {
133 LL | |     n: SB
134 LL | | }
135    | |_^
136    |
137 note: `SA` has a `#[repr(align)]` attribute
138   --> $DIR/repr-packed-contains-align.rs:5:1
139    |
140 LL | struct SA(i32);
141    | ^^^^^^^^^^^^^^^
142 note: `UF` contains a field of type `SB`
143   --> $DIR/repr-packed-contains-align.rs:47:5
144    |
145 LL |     n: SB
146    |     ^
147 note: ...which contains a field of type `SA`
148   --> $DIR/repr-packed-contains-align.rs:7:11
149    |
150 LL | struct SB(SA);
151    |           ^^
152
153 error: aborting due to 8 previous errors
154
155 For more information about this error, try `rustc --explain E0588`.