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

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

14 lines
224 B
Rust
Raw Normal View History

2018-04-30 03:55:24 -05:00
// compile-flags:-C panic=abort
#![no_std]
#![no_main]
use core::panic::PanicInfo;
#[panic_handler]
2018-04-30 03:55:24 -05:00
fn panic(
info: PanicInfo, //~ ERROR argument should be `&PanicInfo`
) -> () //~ ERROR return type should be `!`
{
}