rust/tests/ui/panic-handler/panic-handler-bad-signature-4.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
199 B
Rust
Raw Normal View History

2018-04-30 08:55:24 +00:00
//@ compile-flags:-C panic=abort
#![no_std]
#![no_main]
use core::panic::PanicInfo;
#[panic_handler]
fn panic<T>(pi: &PanicInfo) -> ! {
//~^ ERROR should have no type parameters
2018-04-30 08:55:24 +00:00
loop {}
}