rust/src/test/ui/panic-handler/panic-handler-wrong-location.rs
2018-12-25 21:08:33 -07:00

9 lines
174 B
Rust

// compile-flags:-C panic=abort
#![no_std]
#![no_main]
#[panic_handler] //~ ERROR `panic_impl` language item must be applied to a function
#[no_mangle]
static X: u32 = 42;