| 1 |
error[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 |
| |
| 4 |
17 | 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]` |
| 11 |
note: required by a bound in `AssertSrcIsFromBytes` |
| 12 |
--> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 |
| 13 |
| |
| 14 |
17 | 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 |
|
| 18 |
error[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 |
| |
| 21 |
17 | 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]` |
| 25 |
note: required by a bound in `AssertSrcIsFromBytes` |
| 26 |
--> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 |
| 27 |
| |
| 28 |
17 | 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 |
|
| 32 |
error[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 |
| |
| 35 |
17 | 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]` |
| 42 |
note: required by a bound in `AssertSrcIsAsBytes` |
| 43 |
--> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 |
| 44 |
| |
| 45 |
17 | 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 |
|
| 49 |
error[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 |
| |
| 52 |
17 | 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]` |
| 56 |
note: required by a bound in `AssertSrcIsAsBytes` |
| 57 |
--> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 |
| 58 |
| |
| 59 |
17 | 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 |
|
| 63 |
error[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 |
| |
| 66 |
17 | 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]` |
| 73 |
note: required by a bound in `AssertDstIsFromBytes` |
| 74 |
--> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 |
| 75 |
| |
| 76 |
17 | 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 |
|
| 80 |
error[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 |
| |
| 83 |
17 | 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]` |
| 90 |
note: required by a bound in `AssertDstIsAsBytes` |
| 91 |
--> tests/ui-nightly/transmute-mut-src-dst-unsized.rs:17:36 |
| 92 |
| |
| 93 |
17 | 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 |
|
| 97 |
error[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 |
| |
| 100 |
17 | 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 |
|
| 108 |
error[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 |
| |
| 111 |
17 | 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]` |
| 115 |
note: 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 |
|
| 125 |
error[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 |
| |
| 128 |
17 | 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 |
|
| 135 |
error[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 |
| |
| 138 |
17 | 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]` |
| 142 |
note: required by a bound in `AlignOf` |
| 143 |
--> src/macro_util.rs |
| 144 |
| |
| 145 |
| pub struct AlignOf<T> { |
| 146 |
| ^ required by this bound 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 |
|
| 149 |
error[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 |
| |
| 152 |
17 | 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]` |
| 156 |
note: required by a bound in `MaxAlignsOf` |
| 157 |
--> src/macro_util.rs |
| 158 |
| |
| 159 |
| pub union MaxAlignsOf<T, U> { |
| 160 |
| ^ required by this bound 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 |
|
| 163 |
error[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 |
| |
| 166 |
17 | 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]` |
| 170 |
note: required by a bound in `AlignOf` |
| 171 |
--> src/macro_util.rs |
| 172 |
| |
| 173 |
| pub struct AlignOf<T> { |
| 174 |
| ^ required by this bound 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 |
|
| 177 |
error[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 |
| |
| 180 |
17 | 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 |
|
| 188 |
error[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 |
| |
| 191 |
17 | 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]` |
| 195 |
note: required by a bound in `transmute` |
| 196 |
--> $RUST/core/src/intrinsics.rs |
| 197 |
| |
| 198 |
| pub fn transmute<Src, Dst>(src: Src) -> Dst; |
| 199 |
| ^^^ required by this bound 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 |
|
| 202 |
error[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 |
| |
| 205 |
17 | 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]` |
| 212 |
note: required by a 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 this bound 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 |
|
| 219 |
error[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 |
| |
| 222 |
17 | 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]` |
| 226 |
note: required by a 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 this bound in `transmute_mut` |
| 231 |
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) |