We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn main() { let slice = &[0, 1] as &[i32]; unsafe { std::slice::from_raw_parts(slice as *const [i32] as *const i32, 1); } }
thread 'main' panicked at 'attempt to create unaligned slice', sysroot_src/src/libcore/slice/mod.rs:4892:5