#[repr(C)] pub enum Foo { A, B, C, D } fn main() { let _f = unsafe { std::mem::transmute::(42) }; //~ ERROR encountered 42, but expected a valid enum discriminant }