rust/tests/ui/offset-of/offset-of-dst-field.stderr

28 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-09-11 02:37:49 -05:00
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2023-04-21 03:53:34 -05:00
--> $DIR/offset-of-dst-field.rs:30: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-21 03:53:34 -05:00
error[E0277]: the size for values of type `(dyn Trait + 'static)` cannot be known at compilation time
--> $DIR/offset-of-dst-field.rs:31:5
|
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)`
error[E0277]: the size for values of type `Extern` cannot be known at compilation time
--> $DIR/offset-of-dst-field.rs:32:5
|
LL | offset_of!(Gamma, z);
| ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `Extern`
error: aborting due to 3 previous errors
2022-09-11 02:37:49 -05:00
For more information about this error, try `rustc --explain E0277`.