Skip to content

Commit 882b293

Browse files
committed
panic_implementation-closures
1 parent 734439c commit 882b293

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
//@ build-pass (FIXME(62277): could be check-pass?)
1+
//! Check that closures can be used inside `#[panic_handler]` functions.
2+
3+
//@ check-pass
24

35
#![crate_type = "rlib"]
46
#![no_std]
57

68
#[panic_handler]
7-
pub fn panic_fmt(_: &::core::panic::PanicInfo) -> ! {
9+
pub fn panicfmt(_: &::core::panic::PanicInfo) -> ! {
810
|x: u8| x;
911
loop {}
1012
}

0 commit comments

Comments
 (0)