1
Fork 0
rust/tests/ui/panic-handler/panic-handler-bad-signature-3.rs
2025-04-08 23:06:31 +03:00

11 lines
196 B
Rust

//@ compile-flags:-C panic=abort
#![no_std]
#![no_main]
use core::panic::PanicInfo;
#[panic_handler]
fn panic() -> ! { //~ ERROR #[panic_handler]` function has wrong type [E0308]
loop {}
}