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