]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | // compile-flags:-C panic=abort |
83c7162d | 2 | |
5e7ed085 | 3 | #![feature(alloc_error_handler)] |
8faf50e0 XL |
4 | #![no_std] |
5 | #![no_main] | |
2c00a5a8 | 6 | |
8faf50e0 | 7 | struct Layout; |
3157f602 | 8 | |
8faf50e0 | 9 | #[alloc_error_handler] |
487cf647 | 10 | fn oom() -> ! { //~ ERROR this function takes 0 arguments but 1 argument was supplied |
8faf50e0 | 11 | loop {} |
a7813a04 XL |
12 | } |
13 | ||
b7449926 | 14 | #[panic_handler] |
8faf50e0 | 15 | fn panic(_: &core::panic::PanicInfo) -> ! { loop {} } |