| 1 |
error[E0271]: type mismatch resolving `<[u8; 1] as KnownLayout>::PointerMetadata == usize` |
| 2 |
--> tests/ui-nightly/transmute-ref-src-unsized.rs:14:31 |
| 3 |
| |
| 4 |
14 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `()` |
| 6 |
| |
| 7 |
= note: required for `zerocopy::util::macro_util::Wrap<&[u8], &[u8; 1]>` to implement `zerocopy::util::macro_util::TransmuteRefDst<'_>` |
| 8 |
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) |