2018-04-30 10:55:24 +02:00
|
|
|
//@ compile-flags:-C panic=abort
|
|
|
|
|
|
|
|
#![feature(lang_items)]
|
|
|
|
#![no_std]
|
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
|
2018-08-23 00:40:32 +02:00
|
|
|
#[panic_handler]
|
2018-04-30 10:55:24 +02:00
|
|
|
fn panic(info: &PanicInfo) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[lang = "panic_impl"]
|
2020-01-10 14:36:22 +00:00
|
|
|
fn panic2(info: &PanicInfo) -> ! { //~ ERROR found duplicate lang item `panic_impl`
|
2018-04-30 10:55:24 +02:00
|
|
|
loop {}
|
|
|
|
}
|