2025-07-01 02:46:47 +05:00
|
|
|
//! Check that closures can be used inside `#[panic_handler]` functions.
|
|
|
|
|
|
|
|
|
|
//@ check-pass
|
2018-06-05 14:36:36 +01:00
|
|
|
|
|
|
|
|
#![crate_type = "rlib"]
|
|
|
|
|
#![no_std]
|
|
|
|
|
|
2018-08-23 00:40:32 +02:00
|
|
|
#[panic_handler]
|
2025-07-01 02:46:47 +05:00
|
|
|
pub fn panicfmt(_: &::core::panic::PanicInfo) -> ! {
|
2018-06-05 14:36:36 +01:00
|
|
|
|x: u8| x;
|
|
|
|
|
loop {}
|
|
|
|
|
}
|