diff options
Diffstat (limited to 'tests/ui/panic_implementation-closures.rs')
-rw-r--r-- | tests/ui/panic_implementation-closures.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/panic_implementation-closures.rs b/tests/ui/panic_implementation-closures.rs new file mode 100644 index 00000000000..b96125aa952 --- /dev/null +++ b/tests/ui/panic_implementation-closures.rs @@ -0,0 +1,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 {} +} |