@@ -34,6 +34,20 @@ LL | offset_of!((u8, dyn Trait), 1);
34
34
= help: the trait `Sized` is not implemented for `dyn Trait`
35
35
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
36
36
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
+
37
51
error[E0277]: the size for values of type `Extern` cannot be known at compilation time
38
52
--> $DIR/offset-of-dst-field.rs:45:5
39
53
|
@@ -52,20 +66,6 @@ LL | offset_of!(Delta<dyn Trait>, z);
52
66
= help: the trait `Sized` is not implemented for `dyn Trait`
53
67
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
54
68
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
-
69
69
error[E0277]: the size for values of type `T` cannot be known at compilation time
70
70
--> $DIR/offset-of-dst-field.rs:50:5
71
71
|
0 commit comments