@@ -34,20 +34,6 @@ LL | offset_of!((u8, dyn Trait), 1);
3434 = help: the trait `Sized` is not implemented for `dyn Trait`
3535 = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
3636
37- error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
38- --> $DIR/offset-of-dst-field.rs:44:5
39- |
40- LL | offset_of!(Delta<Alpha>, z);
41- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
42- |
43- = help: within `Alpha`, the trait `Sized` is not implemented for `[u8]`, which is required by `Alpha: Sized`
44- note: required because it appears within the type `Alpha`
45- --> $DIR/offset-of-dst-field.rs:5:8
46- |
47- LL | struct Alpha {
48- | ^^^^^
49- = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
50-
5137error[E0277]: the size for values of type `Extern` cannot be known at compilation time
5238 --> $DIR/offset-of-dst-field.rs:45:5
5339 |
@@ -66,6 +52,20 @@ LL | offset_of!(Delta<dyn Trait>, z);
6652 = help: the trait `Sized` is not implemented for `dyn Trait`
6753 = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
6854
55+ error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
56+ --> $DIR/offset-of-dst-field.rs:44:5
57+ |
58+ LL | offset_of!(Delta<Alpha>, z);
59+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
60+ |
61+ = help: within `Alpha`, the trait `Sized` is not implemented for `[u8]`, which is required by `Alpha: Sized`
62+ note: required because it appears within the type `Alpha`
63+ --> $DIR/offset-of-dst-field.rs:5:8
64+ |
65+ LL | struct Alpha {
66+ | ^^^^^
67+ = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
68+
6969error[E0277]: the size for values of type `T` cannot be known at compilation time
7070 --> $DIR/offset-of-dst-field.rs:50:5
7171 |
0 commit comments