blob: 2e7e279f847dd28f11cead520f004d2f09998018 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![allow(clippy::single_match)]
use std::ptr;
fn main() {
match Some(0_usize) {
Some(_) => {
let s = "012345";
unsafe { ptr::read(s.as_ptr().offset(1) as *const [u8; 5]) };
},
_ => (),
};
}
|