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

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

12 lines
196 B
Rust
Raw Permalink Normal View History

2018-04-30 10:55:24 +02:00
//@ compile-flags:-C panic=abort
#![no_std]
#![no_main]
use core::panic::PanicInfo;
#[panic_handler]
fn panic() -> ! { //~ ERROR #[panic_handler]` function has wrong type [E0308]
2018-04-30 10:55:24 +02:00
loop {}
}