2018-07-06 15:49:52 +02:00
|
|
|
// compile-flags:-C panic=abort
|
|
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
|
|
use core::alloc::Layout;
|
|
|
|
|
|
2022-10-14 02:24:58 +01:00
|
|
|
#[alloc_error_handler] //~ ERROR use of unstable library feature 'alloc_error_handler'
|
2018-07-06 15:49:52 +02:00
|
|
|
fn oom(info: Layout) -> ! {
|
|
|
|
|
loop {}
|
|
|
|
|
}
|
2019-01-02 17:14:24 +03:00
|
|
|
|
|
|
|
|
#[panic_handler]
|
2022-10-14 02:24:58 +01:00
|
|
|
fn panic(_: &core::panic::PanicInfo) -> ! {
|
|
|
|
|
loop {}
|
|
|
|
|
}
|