1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 2 --> tests/ui-nightly/transmute-ref-dst-unsized.rs:17:28 3 | 417 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | | 7 | doesn't have a size known at compile-time 8 | required by a bound introduced by this call 9 | 10 = help: the trait `Sized` is not implemented for `[u8]` 11note: required by a bound in `AssertDstIsSized` 12 --> tests/ui-nightly/transmute-ref-dst-unsized.rs:17:28 13 | 1417 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]); 15 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsSized` 16 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 17 18error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 19 --> tests/ui-nightly/transmute-ref-dst-unsized.rs:17:28 20 | 2117 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]); 22 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 23 | 24 = help: the trait `Sized` is not implemented for `[u8]` 25 = note: all local variables must have a statically known size 26 = help: unsized locals are gated as an unstable feature 27 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 28 29error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 30 --> tests/ui-nightly/transmute-ref-dst-unsized.rs:17:28 31 | 3217 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]); 33 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 34 | 35 = help: the trait `Sized` is not implemented for `[u8]` 36note: required by an implicit `Sized` bound in `MaxAlignsOf` 37 --> src/util/macro_util.rs 38 | 39 | pub union MaxAlignsOf<T, U> { 40 | ^ required by the implicit `Sized` requirement on this type parameter in `MaxAlignsOf` 41 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 42 43error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 44 --> tests/ui-nightly/transmute-ref-dst-unsized.rs:17:28 45 | 4617 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]); 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 48 | 49 = help: the trait `Sized` is not implemented for `[u8]` 50note: required by an implicit `Sized` bound in `std::intrinsics::transmute` 51 --> $RUST/core/src/intrinsics.rs 52 | 53 | pub const unsafe fn transmute<Src, Dst>(_src: Src) -> Dst { 54 | ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute` 55 = note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 56 57error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 58 --> tests/ui-nightly/transmute-ref-dst-unsized.rs:17:28 59 | 6017 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]); 61 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 62 | 63 = help: the trait `Sized` is not implemented for `[u8]` 64note: required by an implicit `Sized` bound in `transmute_ref` 65 --> src/util/macro_util.rs 66 | 67 | pub const unsafe fn transmute_ref<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>( 68 | ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_ref` 69 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) 70