mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
11 lines
244 B
Rust
11 lines
244 B
Rust
#![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() {}
|