1 // This should fail even without validation
2 // compile-flags: -Zmiri-disable-validation
4 #![feature(never_type)]
5 #![allow(unused, invalid_value)]
9 pub struct Void(VoidI);
11 pub fn f(v: Void) -> ! {
12 match v.0 {} //~ ERROR entering unreachable code
18 std::mem::transmute::<(), m::Void>(())
20 m::f(v); //~ inside `main`