about summary refs log tree commit diff
path: root/tests/ui/panic-handler/panic-handler-wrong-location.rs
blob: 49685ee45926e887a00b1a8fe65765a136631c7b (plain)
1
2
3
4
5
6
7
8
//@ 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;