2018-04-30 10:55:24 +02:00
|
|
|
// compile-flags:-C panic=abort
|
|
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
|
|
2018-08-23 00:40:32 +02:00
|
|
|
#[panic_handler]
|
2023-09-17 20:13:05 +02:00
|
|
|
fn panic(info: &'static PanicInfo) -> !
|
|
|
|
|
//~^ #[panic_handler]` function has wrong type [E0308]
|
2018-04-30 10:55:24 +02:00
|
|
|
{
|
|
|
|
|
loop {}
|
|
|
|
|
}
|