1
Fork 0
rust/tests/ui/panic-handler/panic-handler-bad-signature-5.rs

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

14 lines
215 B
Rust
Raw Normal View History

// compile-flags:-C panic=abort
#![no_std]
#![no_main]
use core::panic::PanicInfo;
#[panic_handler]
fn panic(info: &PanicInfo<'static>) -> !
//~^ #[panic_handler]` function has wrong type [E0308]
{
loop {}
}