blob: 6b86feb5921a1d04a64972ad763f07654d8c53aa [file] [log] [blame]
#![crate_type = "bin"]
#![feature(lang_items)]
#![feature(const_panic)]
#![no_main]
#![no_std]
use core::panic::PanicInfo;
const Z: () = panic!("cheese");
//~^ ERROR any use of this value will cause an error
const Y: () = unreachable!();
//~^ ERROR any use of this value will cause an error
const X: () = unimplemented!();
//~^ ERROR any use of this value will cause an error
#[lang = "eh_personality"]
fn eh() {}
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}