All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
Conversion between raw slices of differently sized types is undefined behaviour, because the length of the pointer is not converted using as.
as
let x = &[10, 20]; let foo = x as *const [i32] as *const [u8];