]> git.lizzy.rs Git - rust.git/blob - src/test/ui/panic-handler/panic-handler-bad-signature-4.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / ui / panic-handler / panic-handler-bad-signature-4.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<T>(pi: &PanicInfo) -> ! {
10     //~^ ERROR should have no type parameters
11     loop {}
12 }