]> git.lizzy.rs Git - rust.git/blob - src/test/ui/panic_implementation-closures.rs
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[rust.git] / src / test / ui / panic_implementation-closures.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2
3 #![crate_type = "rlib"]
4 #![no_std]
5
6 #[panic_handler]
7 pub fn panic_fmt(_: &::core::panic::PanicInfo) -> ! {
8     |x: u8| x;
9     loop {}
10 }