Files
rust/tests/ui/panics/panic-handler-closures.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
225 B
Rust
Raw Normal View History

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