summary refs log tree commit diff
path: root/tests/ui/panic-handler/panic-handler-wrong-location.rs
blob: c91580ae0c4ce9813b084ccf6b1758c82e139837 (plain)
1
2
3
4
5
6
7
8
9
10
//@ compile-flags:-C panic=abort

#![no_std]
#![no_main]

#[panic_handler] //~ ERROR `panic_impl` lang item must be applied to a function
#[no_mangle]
static X: u32 = 42;

//~? ERROR `#[panic_handler]` function required, but not found