1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 2 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 3 | 416 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 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 `AssertSrcIsSized` 12 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 13 | 1416 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized` 16 = note: this error originates in the macro `transmute_mut` (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-mut-src-unsized.rs:16:35 20 | 2116 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 23 | 24 = help: the trait `Sized` is not implemented for `[u8]` 25note: required by a bound in `AssertSrcIsSized` 26 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 27 | 2816 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized` 30 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 31 32error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 33 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 34 | 3516 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 37 | 38 = help: the trait `Sized` is not implemented for `[u8]` 39 = note: all local variables must have a statically known size 40 = help: unsized locals are gated as an unstable feature 41 = note: this error originates in the macro `transmute_mut` (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-mut-src-unsized.rs:16:35 45 | 4616 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 48 | 49 = help: the trait `Sized` is not implemented for `[u8]` 50note: required by a bound in `AlignOf::<T>::into_t` 51 --> src/util/macro_util.rs 52 | 53 | impl<T> AlignOf<T> { 54 | ^ required by this bound in `AlignOf::<T>::into_t` 55... 56 | pub fn into_t(self) -> T { 57 | ------ required by a bound in this associated function 58 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 59 60error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 61 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 62 | 6316 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 65 | 66 = help: the trait `Sized` is not implemented for `[u8]` 67 = note: the left-hand-side of an assignment must have a statically known size 68 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 69 70error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 71 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 72 | 7316 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 74 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 75 | 76 = help: the trait `Sized` is not implemented for `[u8]` 77note: required by an implicit `Sized` bound in `AlignOf` 78 --> src/util/macro_util.rs 79 | 80 | pub struct AlignOf<T> { 81 | ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf` 82 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 83 84error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 85 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 86 | 8716 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 88 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 89 | 90 = help: the trait `Sized` is not implemented for `[u8]` 91note: required by an implicit `Sized` bound in `MaxAlignsOf` 92 --> src/util/macro_util.rs 93 | 94 | pub union MaxAlignsOf<T, U> { 95 | ^ required by the implicit `Sized` requirement on this type parameter in `MaxAlignsOf` 96 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 97 98error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 99 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 100 | 10116 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 103 | 104 = help: the trait `Sized` is not implemented for `[u8]` 105note: required by an implicit `Sized` bound in `AlignOf` 106 --> src/util/macro_util.rs 107 | 108 | pub struct AlignOf<T> { 109 | ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf` 110 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 111 112error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 113 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 114 | 11516 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 117 | | 118 | doesn't have a size known at compile-time 119 | required by a bound introduced by this call 120 | 121 = help: the trait `Sized` is not implemented for `[u8]` 122note: required by an implicit `Sized` bound in `transmute_mut` 123 --> src/util/macro_util.rs 124 | 125 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>( 126 | ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_mut` 127 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 128