| 1 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 2 |
--> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32 |
| 3 |
| |
| 4 |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 6 |
| |
| 7 |
= help: the trait `Sized` is not implemented for `[u8]` |
| 8 |
note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut` |
| 9 |
--> src/util/macro_util.rs |
| 10 |
| |
| 11 |
| impl<'a, Src, Dst> Wrap<&'a mut Src, &'a mut Dst> { |
| 12 |
| ^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut` |
| 13 |
... |
| 14 |
| pub fn transmute_mut(self) -> &'a mut Dst |
| 15 |
| ------------- required by a bound in this associated function |
| 16 |
= note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info) |