2022-09-11 02:37:49 -05:00
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
2023-05-16 21:56:59 -05:00
|
|
|
--> $DIR/offset-of-dst-field.rs:36:5
|
2022-09-11 02:37:49 -05:00
|
|
|
|
|
2023-04-21 03:53:34 -05:00
|
|
|
LL | offset_of!(Alpha, z);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
2022-09-11 02:37:49 -05:00
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
2023-04-22 09:29:34 -05:00
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-09-11 02:37:49 -05:00
|
|
|
|
2023-04-21 03:53:34 -05:00
|
|
|
error[E0277]: the size for values of type `(dyn Trait + 'static)` cannot be known at compilation time
|
2023-05-16 21:56:59 -05:00
|
|
|
--> $DIR/offset-of-dst-field.rs:37:5
|
2023-04-21 03:53:34 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(Beta, z);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `(dyn Trait + 'static)`
|
2023-04-22 09:29:34 -05:00
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2023-04-21 03:53:34 -05:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `Extern` cannot be known at compilation time
|
2023-05-16 21:56:59 -05:00
|
|
|
--> $DIR/offset-of-dst-field.rs:38:5
|
2023-04-21 03:53:34 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(Gamma, z);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `Extern`
|
2023-04-22 09:29:34 -05:00
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2023-04-21 03:53:34 -05:00
|
|
|
|
2023-06-01 19:41:02 -05:00
|
|
|
error[E0277]: the size for values of type `dyn Trait` cannot be known at compilation time
|
|
|
|
--> $DIR/offset-of-dst-field.rs:40:5
|
|
|
|
|
|
|
|
|
LL | offset_of!((u8, dyn Trait), 1);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `dyn Trait`
|
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2023-06-08 07:11:31 -05:00
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
|
|
--> $DIR/offset-of-dst-field.rs:44:5
|
|
|
|
|
|
|
|
|
LL | offset_of!(Delta<Alpha>, z);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: within `Alpha`, the trait `Sized` is not implemented for `[u8]`
|
|
|
|
note: required because it appears within the type `Alpha`
|
|
|
|
--> $DIR/offset-of-dst-field.rs:5:8
|
|
|
|
|
|
|
|
|
LL | struct Alpha {
|
|
|
|
| ^^^^^
|
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2023-05-16 21:56:59 -05:00
|
|
|
error[E0277]: the size for values of type `Extern` cannot be known at compilation time
|
2023-06-01 19:41:02 -05:00
|
|
|
--> $DIR/offset-of-dst-field.rs:45:5
|
2023-05-16 21:56:59 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(Delta<Extern>, z);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `Extern`
|
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2023-05-17 15:10:36 -05:00
|
|
|
error[E0277]: the size for values of type `dyn Trait` cannot be known at compilation time
|
2023-06-01 19:41:02 -05:00
|
|
|
--> $DIR/offset-of-dst-field.rs:46:5
|
2023-05-17 15:10:36 -05:00
|
|
|
|
|
|
|
|
LL | offset_of!(Delta<dyn Trait>, z);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `Sized` is not implemented for `dyn Trait`
|
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2023-05-16 21:56:59 -05:00
|
|
|
error[E0277]: the size for values of type `T` cannot be known at compilation time
|
2023-06-01 19:41:02 -05:00
|
|
|
--> $DIR/offset-of-dst-field.rs:50:5
|
2023-05-16 21:56:59 -05:00
|
|
|
|
|
|
|
|
LL | fn generic_with_maybe_sized<T: ?Sized>() -> usize {
|
2023-06-14 12:22:03 -05:00
|
|
|
| - this type parameter needs to be `Sized`
|
2023-05-16 21:56:59 -05:00
|
|
|
LL | offset_of!(Delta<T>, z)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
|
|
|
LL - fn generic_with_maybe_sized<T: ?Sized>() -> usize {
|
|
|
|
LL + fn generic_with_maybe_sized<T>() -> usize {
|
|
|
|
|
|
|
|
|
|
2023-06-01 19:41:02 -05:00
|
|
|
error: aborting due to 8 previous errors
|
2022-09-11 02:37:49 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|