1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 2 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 3 | 417 | const SRC_DST_UNSIZED: &mut [u8] = 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-dst-unsized.rs:17:36 13 | 1417 | const SRC_DST_UNSIZED: &mut [u8] = 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-dst-unsized.rs:17:36 20 | 2117 | const SRC_DST_UNSIZED: &mut [u8] = 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-dst-unsized.rs:17:36 27 | 2817 | const SRC_DST_UNSIZED: &mut [u8] = 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-dst-unsized.rs:17:36 34 | 3517 | const SRC_DST_UNSIZED: &mut [u8] = 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-dst-unsized.rs:17:36 44 | 4517 | const SRC_DST_UNSIZED: &mut [u8] = 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-dst-unsized.rs:17:36 51 | 5217 | const SRC_DST_UNSIZED: &mut [u8] = 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-dst-unsized.rs:17:36 58 | 5917 | const SRC_DST_UNSIZED: &mut [u8] = 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-dst-unsized.rs:17:36 65 | 6617 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 68 | | 69 | doesn't have a size known at compile-time 70 | required by a bound introduced by this call 71 | 72 = help: the trait `Sized` is not implemented for `[u8]` 73note: required by a bound in `AssertDstIsFromBytes` 74 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 75 | 7617 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes` 78 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 79 80error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 81 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 82 | 8317 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 84 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 85 | | 86 | doesn't have a size known at compile-time 87 | required by a bound introduced by this call 88 | 89 = help: the trait `Sized` is not implemented for `[u8]` 90note: required by a bound in `AssertDstIsAsBytes` 91 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 92 | 9317 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 94 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsAsBytes` 95 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 96 97error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 98 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 99 | 10017 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 102 | 103 = help: the trait `Sized` is not implemented for `[u8]` 104 = note: all local variables must have a statically known size 105 = help: unsized locals are gated as an unstable feature 106 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 107 108error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 109 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 110 | 11117 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 112 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 113 | 114 = help: the trait `Sized` is not implemented for `[u8]` 115note: required by a bound in `AlignOf::<T>::into_t` 116 --> src/macro_util.rs 117 | 118 | impl<T> AlignOf<T> { 119 | ^ required by this bound in `AlignOf::<T>::into_t` 120 | #[inline(never)] // Make `missing_inline_in_public_items` happy. 121 | pub fn into_t(self) -> T { 122 | ------ required by a bound in this associated function 123 = 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) 124 125error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 126 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 127 | 12817 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 129 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 130 | 131 = help: the trait `Sized` is not implemented for `[u8]` 132 = note: the left-hand-side of an assignment must have a statically known size 133 = 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) 134 135error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 136 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 137 | 13817 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 140 | 141 = help: the trait `Sized` is not implemented for `[u8]` 142note: required by an implicit `Sized` bound in `AlignOf` 143 --> src/macro_util.rs 144 | 145 | pub struct AlignOf<T> { 146 | ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf` 147 = 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) 148 149error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 150 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 151 | 15217 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 153 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 154 | 155 = help: the trait `Sized` is not implemented for `[u8]` 156note: required by an implicit `Sized` bound in `MaxAlignsOf` 157 --> src/macro_util.rs 158 | 159 | pub union MaxAlignsOf<T, U> { 160 | ^ required by the implicit `Sized` requirement on this type parameter in `MaxAlignsOf` 161 = 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) 162 163error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 164 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 165 | 16617 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 167 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 168 | 169 = help: the trait `Sized` is not implemented for `[u8]` 170note: required by an implicit `Sized` bound in `AlignOf` 171 --> src/macro_util.rs 172 | 173 | pub struct AlignOf<T> { 174 | ^ required by the implicit `Sized` requirement on this type parameter in `AlignOf` 175 = 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) 176 177error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 178 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 179 | 18017 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 181 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 182 | 183 = help: the trait `Sized` is not implemented for `[u8]` 184 = note: all local variables must have a statically known size 185 = help: unsized locals are gated as an unstable feature 186 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 187 188error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 189 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 190 | 19117 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 192 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 193 | 194 = help: the trait `Sized` is not implemented for `[u8]` 195note: required by an implicit `Sized` bound in `transmute` 196 --> $RUST/core/src/intrinsics.rs 197 | 198 | pub fn transmute<Src, Dst>(src: Src) -> Dst; 199 | ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute` 200 = note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 201 202error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 203 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 204 | 20517 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 206 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207 | | 208 | doesn't have a size known at compile-time 209 | required by a bound introduced by this call 210 | 211 = help: the trait `Sized` is not implemented for `[u8]` 212note: required by an implicit `Sized` bound in `transmute_mut` 213 --> src/macro_util.rs 214 | 215 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>( 216 | ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_mut` 217 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 218 219error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 220 --> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 221 | 22217 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]); 223 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 224 | 225 = help: the trait `Sized` is not implemented for `[u8]` 226note: required by an implicit `Sized` bound in `transmute_mut` 227 --> src/macro_util.rs 228 | 229 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>( 230 | ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute_mut` 231 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 232