2018-07-06 15:49:52 +02:00
|
|
|
// compile-flags:-C panic=abort
|
|
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
|
|
use core::alloc::Layout;
|
|
|
|
|
|
2019-08-23 01:09:51 +02:00
|
|
|
#[alloc_error_handler] //~ ERROR the `#[alloc_error_handler]` attribute is an experimental feature
|
2018-07-06 15:49:52 +02:00
|
|
|
fn oom(info: Layout) -> ! {
|
|
|
|
|
loop {}
|
|
|
|
|
}
|
2019-01-02 17:14:24 +03:00
|
|
|
|
|
|
|
|
#[panic_handler]
|
|
|
|
|
fn panic(_: &core::panic::PanicInfo) -> ! { loop {} }
|