1 // build-pass (FIXME(62277): could be check-pass?)
5 #![feature(never_type)]
7 #![allow(unreachable_code)]
8 #![allow(unused_variables)]
17 // This is completely undefined behaviour,
18 // but we still want to make sure it compiles.
20 std::mem::transmute::<Foo, !>(Foo)