summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panic_implementation-closures.rs
blob: b96125aa952605c07b5ea7ecd09e8ae65db1f62c (plain)
1
2
3
4
5
6
7
8
9
10
// build-pass (FIXME(62277): could be check-pass?)

#![crate_type = "rlib"]
#![no_std]

#[panic_handler]
pub fn panic_fmt(_: &::core::panic::PanicInfo) -> ! {
    |x: u8| x;
    loop {}
}