blob: c04deae502b0fa00f004c17f72ba542ffdb70153 [file] [log] [blame] [edit]
#![feature(mem_conjure_zst)]
use std::{convert::Infallible, mem};
const INVALID: Infallible = unsafe { mem::conjure_zst() };
//~^ ERROR attempted to instantiate uninhabited type
const VALID: () = unsafe { mem::conjure_zst() };
fn main() {}