1 // EMIT_MIR issue_75439.foo.MatchBranchSimplification.diff
3 use std::mem::transmute;
5 pub fn foo(bytes: [u8; 16]) -> Option<[u8; 4]> {
7 let dwords: [u32; 4] = unsafe { transmute(bytes) };
8 const FF: u32 = 0x0000_ffff_u32.to_be();
9 if let [0, 0, 0 | FF, ip] = dwords {
10 Some(unsafe { transmute(ip) })