3 pub const unsafe fn fake_type<T>() -> T {
4 hint_unreachable() //~ ERROR evaluation of `<i32 as Const>::CONSTANT` failed
7 pub const unsafe fn hint_unreachable() -> ! {
12 const CONSTANT: i32 = unsafe { fake_type() };
15 impl<T> Const for T {}
18 dbg!(i32::CONSTANT); //~ constant