summaryrefslogtreecommitdiffstats
path: root/tests/ui/panic-handler/panic-handler-bad-signature-1.rs
blob: ae27db7a835247a53a82008116ec1eb3fcacaa75 (plain)
1
2
3
4
5
6
7
8
9
10
// compile-flags:-C panic=abort

#![no_std]
#![no_main]

use core::panic::PanicInfo;

#[panic_handler]
fn panic(info: PanicInfo) -> () {}
//~^ `#[panic_handler]` function has wrong type [E0308]