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

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

15 lines
208 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: &'static PanicInfo, //~ ERROR argument should be `&PanicInfo`
) -> !
{
loop {}
}