Files
rust/tests/ui/panic-handler/panic-handler-wrong-location.rs
T
2026-06-22 17:09:32 +02:00

10 lines
205 B
Rust

//@ compile-flags:-C panic=abort
#![no_std]
#![no_main]
#[panic_handler] //~ ERROR attribute cannot be used on statics
static X: u32 = 42;
//~? ERROR `#[panic_handler]` function required, but not found