3 pub const unsafe fn fake_type<T>() -> T {
4 hint_unreachable() //~ ERROR any use of this value will cause an error
7 pub const unsafe fn hint_unreachable() -> ! {
12 const CONSTANT: i32 = unsafe { fake_type() };
15 impl <T> Const for T {}
18 dbg!(i32::CONSTANT); //~ ERROR erroneous constant used