]> git.proxmox.com Git - rustc.git/blame - tests/ui/panic-handler/panic-handler-bad-signature-1.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / panic-handler / panic-handler-bad-signature-1.rs
CommitLineData
94b46f34 1// compile-flags:-C panic=abort
1a4d82fc 2
94b46f34
XL
3#![no_std]
4#![no_main]
9e0c209e 5
94b46f34 6use core::panic::PanicInfo;
83c7162d 7
b7449926 8#[panic_handler]
781aab86
FG
9fn panic(info: PanicInfo) -> () {}
10//~^ `#[panic_handler]` function has wrong type [E0308]