about summary refs log tree commit diff
path: root/tests/ui/panic-handler/panic-handler-with-track-caller.stderr
blob: 605567acdb58b66f3a1853064d4ab671ee67d03c (plain)
1
2
3
4
5
6
7
8
9
10
11
error: `#[panic_handler]` function is not allowed to have `#[track_caller]`
  --> $DIR/panic-handler-with-track-caller.rs:10:1
   |
LL | #[track_caller]
   | ^^^^^^^^^^^^^^^
LL |
LL | fn panic(info: &PanicInfo) -> ! {
   | ------------------------------- `#[panic_handler]` function is not allowed to have `#[track_caller]`

error: aborting due to 1 previous error