fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 2 --> $DIR/offset-of-dst-field.rs:36:5 3 | 4LL | offset_of!(Alpha, z); 5 | ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 6 | 7 = help: the trait `Sized` is not implemented for `[u8]` 8 = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) 9 10error[E0277]: the size for values of type `(dyn Trait + 'static)` cannot be known at compilation time 11 --> $DIR/offset-of-dst-field.rs:37:5 12 | 13LL | offset_of!(Beta, z); 14 | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 15 | 16 = help: the trait `Sized` is not implemented for `(dyn Trait + 'static)` 17 = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) 18 19error[E0277]: the size for values of type `Extern` cannot be known at compilation time 20 --> $DIR/offset-of-dst-field.rs:38:5 21 | 22LL | offset_of!(Gamma, z); 23 | ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 24 | 25 = help: the trait `Sized` is not implemented for `Extern` 26 = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) 27 28error[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 | 31LL | 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 37error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 38 --> $DIR/offset-of-dst-field.rs:44:5 39 | 40LL | 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]` 44note: required because it appears within the type `Alpha` 45 --> $DIR/offset-of-dst-field.rs:5:8 46 | 47LL | 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 51error[E0277]: the size for values of type `Extern` cannot be known at compilation time 52 --> $DIR/offset-of-dst-field.rs:45:5 53 | 54LL | offset_of!(Delta<Extern>, z); 55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 56 | 57 = help: the trait `Sized` is not implemented for `Extern` 58 = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) 59 60error[E0277]: the size for values of type `dyn Trait` cannot be known at compilation time 61 --> $DIR/offset-of-dst-field.rs:46:5 62 | 63LL | offset_of!(Delta<dyn Trait>, z); 64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 65 | 66 = help: the trait `Sized` is not implemented for `dyn Trait` 67 = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) 68 69error[E0277]: the size for values of type `T` cannot be known at compilation time 70 --> $DIR/offset-of-dst-field.rs:50:5 71 | 72LL | fn generic_with_maybe_sized<T: ?Sized>() -> usize { 73 | - this type parameter needs to be `Sized` 74LL | offset_of!(Delta<T>, z) 75 | ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 76 | 77 = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) 78help: consider removing the `?Sized` bound to make the type parameter `Sized` 79 | 80LL - fn generic_with_maybe_sized<T: ?Sized>() -> usize { 81LL + fn generic_with_maybe_sized<T>() -> usize { 82 | 83 84error: aborting due to 8 previous errors 85 86For more information about this error, try `rustc --explain E0277`.