1 // compile-flags:-C panic=abort
3 #![feature(alloc_error_handler, panic_handler)]
7 use core::alloc::Layout;
11 info: &Layout, //~ ERROR argument should be `Layout`
12 ) -> () //~ ERROR return type should be `!`
18 fn panic(_: &core::panic::PanicInfo) -> ! { loop {} }