We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 734439c commit 882b293Copy full SHA for 882b293
tests/ui/panics/panic-handler-closures.rs
@@ -1,10 +1,12 @@
1
-//@ build-pass (FIXME(62277): could be check-pass?)
+//! Check that closures can be used inside `#[panic_handler]` functions.
2
+
3
+//@ check-pass
4
5
#![crate_type = "rlib"]
6
#![no_std]
7
8
#[panic_handler]
-pub fn panic_fmt(_: &::core::panic::PanicInfo) -> ! {
9
+pub fn panicfmt(_: &::core::panic::PanicInfo) -> ! {
10
|x: u8| x;
11
loop {}
12
}
0 commit comments