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 `AssertSrcIsFromBytes` 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 `AssertSrcIsFromBytes` 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 `AssertSrcIsFromBytes` 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 `AssertSrcIsFromBytes` 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 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 37 | | 38 | doesn't have a size known at compile-time 39 | required by a bound introduced by this call 40 | 41 = help: the trait `Sized` is not implemented for `[u8]` 42note: required by a bound in `AssertSrcIsAsBytes` 43 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 44 | 4516 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes` 47 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 48 49error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 50 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 51 | 5216 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 54 | 55 = help: the trait `Sized` is not implemented for `[u8]` 56note: required by a bound in `AssertSrcIsAsBytes` 57 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 58 | 5916 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes` 61 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 62 63error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 64 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 65 | 6616 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 68 | 69 = help: the trait `Sized` is not implemented for `[u8]` 70 = note: all local variables must have a statically known size 71 = help: unsized locals are gated as an unstable feature 72 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 73 74error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 75 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 76 | 7716 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 78 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 79 | 80 = help: the trait `Sized` is not implemented for `[u8]` 81note: required by a bound in `AlignOf::<T>::into_t` 82 --> src/macro_util.rs 83 | 84 | impl<T> AlignOf<T> { 85 | ^ required by this bound in `AlignOf::<T>::into_t` 86 | #[inline(never)] // Make `missing_inline_in_public_items` happy. 87 | pub fn into_t(self) -> T { 88 | ------ required by a bound in this associated function 89 = 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) 90 91error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 92 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 93 | 9416 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 96 | 97 = help: the trait `Sized` is not implemented for `[u8]` 98 = note: the left-hand-side of an assignment must have a statically known size 99 = 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) 100 101error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 102 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 103 | 10416 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 105 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 106 | 107 = help: the trait `Sized` is not implemented for `[u8]` 108note: required by an implicit `Sized` bound in `AlignOf` 109 --> src/macro_util.rs 110 | 111 | pub struct AlignOf<T> { 112 | ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf` 113 = 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) 114 115error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 116 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 117 | 11816 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 120 | 121 = help: the trait `Sized` is not implemented for `[u8]` 122note: required by an implicit `Sized` bound in `MaxAlignsOf` 123 --> src/macro_util.rs 124 | 125 | pub union MaxAlignsOf<T, U> { 126 | ^ required by the implicit `Sized` requirement on this type parameter in `MaxAlignsOf` 127 = 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) 128 129error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 130 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 131 | 13216 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 133 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 134 | 135 = help: the trait `Sized` is not implemented for `[u8]` 136note: required by an implicit `Sized` bound in `AlignOf` 137 --> src/macro_util.rs 138 | 139 | pub struct AlignOf<T> { 140 | ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf` 141 = 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) 142 143error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 144 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35 145 | 14616 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 147 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 148 | | 149 | doesn't have a size known at compile-time 150 | required by a bound introduced by this call 151 | 152 = help: the trait `Sized` is not implemented for `[u8]` 153note: required by an implicit `Sized` bound in `transmute_mut` 154 --> src/macro_util.rs 155 | 156 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>( 157 | ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_mut` 158 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 159