2018-07-06 15:49:52 +02:00
|
|
|
// compile-flags:-C panic=abort
|
|
|
|
|
2022-01-19 16:24:49 +01:00
|
|
|
#![feature(alloc_error_handler)]
|
2018-07-06 15:49:52 +02:00
|
|
|
#![no_std]
|
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
struct Layout;
|
|
|
|
|
|
|
|
#[alloc_error_handler]
|
2023-01-05 03:02:10 +00:00
|
|
|
fn oom() -> ! { //~ ERROR function takes 0 arguments but 1 argument was supplied
|
2018-07-06 15:49:52 +02:00
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2018-08-23 00:40:32 +02:00
|
|
|
#[panic_handler]
|
2018-07-06 15:49:52 +02:00
|
|
|
fn panic(_: &core::panic::PanicInfo) -> ! { loop {} }
|