1 error[E0718]: `panic_impl` language item must be applied to a function
2 --> $DIR/panic-handler-wrong-location.rs:6:1
5 | ^^^^^^^^^^^^^^^^ attribute should be applied to a function, not a static item
7 error: `#[panic_handler]` function required, but not found
9 error: aborting due to 2 previous errors
11 For more information about this error, try `rustc --explain E0718`.