fn main() { assert!(std::char::from_u32(-1_i32 as u32).is_none()); let _val = match unsafe { std::mem::transmute::(-1) } { //~ ERROR encountered 4294967295, but expected a valid unicode codepoint 'a' => {true}, 'b' => {false}, _ => {true}, }; }