about summary refs log tree commit diff
path: root/tests/ui/panic-handler/panic-handler-with-track-caller.rs
blob: 09c94139e1697944abf6a2346d04f4300db4d716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ compile-flags:-C panic=abort
//@ only-x86_64

#![no_std]
#![no_main]

use core::panic::PanicInfo;

#[panic_handler]
#[track_caller]
//~^ ERROR `#[panic_handler]` function is not allowed to have `#[track_caller]`
fn panic(info: &PanicInfo) -> ! {
    unimplemented!();
}