1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 2 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 3 | 416 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 6 | 7 = help: the trait `Sized` is not implemented for `[u8]` 8note: required by `AssertSrcIsSized` 9 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 10 | 1116 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 14 15error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 16 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 17 | 1816 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 20 | 21 = help: the trait `Sized` is not implemented for `[u8]` 22note: required by a bound in `AssertSrcIsSized` 23 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 24 | 2516 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsSized` 27 = note: this error originates in the macro `transmute_mut` (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-msrv/transmute-mut-src-unsized.rs:16:35 31 | 3216 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 34 | 35 = help: the trait `Sized` is not implemented for `[u8]` 36 = note: all local variables must have a statically known size 37 = help: unsized locals are gated as an unstable feature 38 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 39 40error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 41 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 42 | 4316 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 45 | 46 = help: the trait `Sized` is not implemented for `[u8]` 47note: required by a bound in `transmute` 48 --> $RUST/core/src/intrinsics.rs 49 | 50 | pub fn transmute<T, U>(e: T) -> U; 51 | ^ required by this bound in `transmute` 52 = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info) 53 54error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 55 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 56 | 5716 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 58 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 59 | 60 = help: the trait `Sized` is not implemented for `[u8]` 61 = note: this error originates in the macro `$crate::assert_align_gt_eq` (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-msrv/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: the left-hand-side of an assignment must have a statically known size 71 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info) 72 73error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 74 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 75 | 7616 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 78 | 79 = help: the trait `Sized` is not implemented for `[u8]` 80note: required by a bound in `AlignOf` 81 --> src/util/macro_util.rs 82 | 83 | pub struct AlignOf<T> { 84 | ^ required by this bound in `AlignOf` 85 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info) 86 87error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 88 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 89 | 9016 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 91 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 92 | 93 = help: the trait `Sized` is not implemented for `[u8]` 94note: required by `MaxAlignsOf::<T, U>::new` 95 --> src/util/macro_util.rs 96 | 97 | pub fn new(_t: T, _u: U) -> MaxAlignsOf<T, U> { 98 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 99 = note: this error originates in the macro `$crate::assert_align_gt_eq` (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-msrv/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 a bound in `MaxAlignsOf` 109 --> src/util/macro_util.rs 110 | 111 | pub union MaxAlignsOf<T, U> { 112 | ^ required by this bound in `MaxAlignsOf` 113 = note: this error originates in the macro `$crate::assert_align_gt_eq` (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-msrv/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 a bound in `MaxAlignsOf` 123 --> src/util/macro_util.rs 124 | 125 | pub union MaxAlignsOf<T, U> { 126 | ^ required by this bound in `MaxAlignsOf` 127 = note: this error originates in the macro `$crate::assert_align_gt_eq` (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-msrv/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 a bound in `AlignOf` 137 --> src/util/macro_util.rs 138 | 139 | pub struct AlignOf<T> { 140 | ^ required by this bound in `AlignOf` 141 = note: this error originates in the macro `$crate::assert_align_gt_eq` (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-msrv/transmute-mut-src-unsized.rs:16:35 145 | 14616 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 147 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 148 | 149 = help: the trait `Sized` is not implemented for `[u8]` 150note: required by a bound in `MaxAlignsOf` 151 --> src/util/macro_util.rs 152 | 153 | pub union MaxAlignsOf<T, U> { 154 | ^ required by this bound in `MaxAlignsOf` 155 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info) 156 157error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 158 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 159 | 16016 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 161 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 162 | 163 = help: the trait `Sized` is not implemented for `[u8]` 164note: required by a bound in `transmute_mut` 165 --> src/util/macro_util.rs 166 | 167 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>( 168 | ^^^ required by this bound in `transmute_mut` 169 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) 170 171error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 172 --> tests/ui-msrv/transmute-mut-src-unsized.rs:16:35 173 | 17416 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]); 175 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 176 | 177 = help: the trait `Sized` is not implemented for `[u8]` 178 = note: all function arguments must have a statically known size 179 = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info) 180