mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 00:03:49 +00:00
13 lines
225 B
Rust
13 lines
225 B
Rust
//! Check that closures can be used inside `#[panic_handler]` functions.
|
|
|
|
//@ check-pass
|
|
|
|
#![crate_type = "rlib"]
|
|
#![no_std]
|
|
|
|
#[panic_handler]
|
|
pub fn panicfmt(_: &::core::panic::PanicInfo) -> ! {
|
|
|x: u8| x;
|
|
loop {}
|
|
}
|