Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.stderr

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