1
- error: layout debugging: Layout {
1
+ error: layout debugging for type E : Layout {
2
2
fields: Arbitrary {
3
3
offsets: [
4
4
Size {
@@ -110,7 +110,7 @@ error: layout debugging: Layout {
110
110
LL | enum E { Foo, Bar(!, i32, i32) }
111
111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112
112
113
- error: layout debugging: Layout {
113
+ error: layout debugging for type S : Layout {
114
114
fields: Arbitrary {
115
115
offsets: [
116
116
Size {
@@ -164,7 +164,7 @@ error: layout debugging: Layout {
164
164
LL | struct S { f1: i32, f2: (), f3: i32 }
165
165
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
166
166
167
- error: layout debugging: Layout {
167
+ error: layout debugging for type U : Layout {
168
168
fields: Union(
169
169
2,
170
170
),
@@ -190,7 +190,7 @@ error: layout debugging: Layout {
190
190
LL | union U { f1: (i32, i32), f3: i32 }
191
191
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
192
192
193
- error: layout debugging: Layout {
193
+ error: layout debugging for type std::result::Result<i32, i32> : Layout {
194
194
fields: Arbitrary {
195
195
offsets: [
196
196
Size {
@@ -315,5 +315,37 @@ error: layout debugging: Layout {
315
315
LL | type Test = Result<i32, i32>;
316
316
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
317
317
318
- error: aborting due to 4 previous errors
318
+ error: layout debugging for type i32: Layout {
319
+ fields: Union(
320
+ 0,
321
+ ),
322
+ variants: Single {
323
+ index: 0,
324
+ },
325
+ abi: Scalar(
326
+ Scalar {
327
+ value: Int(
328
+ I32,
329
+ true,
330
+ ),
331
+ valid_range: 0..=4294967295,
332
+ },
333
+ ),
334
+ largest_niche: None,
335
+ align: AbiAndPrefAlign {
336
+ abi: Align {
337
+ pow2: 2,
338
+ },
339
+ pref: $PREF_ALIGN,
340
+ },
341
+ size: Size {
342
+ raw: 4,
343
+ },
344
+ }
345
+ --> $DIR/debug.rs:18:1
346
+ |
347
+ LL | type T = impl std::fmt::Debug;
348
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
349
+
350
+ error: aborting due to 5 previous errors
319
351
0 commit comments