3 pub const unsafe fn fake_type<T>() -> T {
4 hint_unreachable() //~ ERROR any use of this value will cause an error [const_err]
5 //~| WARN this was previously accepted by the compiler but is being phased out
8 pub const unsafe fn hint_unreachable() -> ! {
13 const CONSTANT: i32 = unsafe { fake_type() };
16 impl<T> Const for T {}
19 dbg!(i32::CONSTANT); //~ ERROR erroneous constant used