]> git.lizzy.rs Git - rust.git/blob - tests/ui/panic-handler/panic-handler-bad-signature-1.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / panic-handler / panic-handler-bad-signature-1.rs
1 // compile-flags:-C panic=abort
2
3 #![no_std]
4 #![no_main]
5
6 use core::panic::PanicInfo;
7
8 #[panic_handler]
9 fn panic(
10     info: PanicInfo, //~ ERROR argument should be `&PanicInfo`
11 ) -> () //~ ERROR return type should be `!`
12 {
13 }