Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
//@ build-fail
pub const unsafe fn fake_type<T>() -> T {
hint_unreachable() //~ inside
}
pub const unsafe fn hint_unreachable() -> ! {
fake_type() //~ inside
trait Const {
const CONSTANT: i32 = unsafe { fake_type() }; //~ ERROR evaluation of `fake_type::<!>` failed
impl<T> Const for T {}
pub fn main() -> () {
dbg!(i32::CONSTANT);