@@ -34,6 +34,15 @@ LL | offset_of!(Delta<Extern>, z);
34
34
= help: the trait `Sized` is not implemented for `Extern`
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 `dyn Trait` cannot be known at compilation time
38
+ --> $DIR/offset-of-dst-field.rs:44:5
39
+ |
40
+ LL | offset_of!(Delta<dyn Trait>, z);
41
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
42
+ |
43
+ = help: the trait `Sized` is not implemented for `dyn Trait`
44
+ = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
45
+
37
46
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
38
47
--> $DIR/offset-of-dst-field.rs:42:5
39
48
|
@@ -49,7 +58,7 @@ LL | struct Alpha {
49
58
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
50
59
51
60
error[E0277]: the size for values of type `T` cannot be known at compilation time
52
- --> $DIR/offset-of-dst-field.rs:47 :5
61
+ --> $DIR/offset-of-dst-field.rs:48 :5
53
62
|
54
63
LL | fn generic_with_maybe_sized<T: ?Sized>() -> usize {
55
64
| - this type parameter needs to be `std::marker::Sized`
@@ -63,6 +72,6 @@ LL - fn generic_with_maybe_sized<T: ?Sized>() -> usize {
63
72
LL + fn generic_with_maybe_sized<T>() -> usize {
64
73
|
65
74
66
- error: aborting due to 6 previous errors
75
+ error: aborting due to 7 previous errors
67
76
68
77
For more information about this error, try `rustc --explain E0277`.
0 commit comments