]> git.lizzy.rs Git - rust.git/blob - src/test/ui/panic-handler/panic-handler-wrong-location.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / panic-handler / panic-handler-wrong-location.rs
1 // compile-flags:-C panic=abort
2
3 #![no_std]
4 #![no_main]
5
6 #[panic_handler] //~ ERROR `panic_impl` language item must be applied to a function
7 #[no_mangle]
8 static X: u32 = 42;