]> git.lizzy.rs Git - rust.git/blob - tests/ui/panic-handler/panic-handler-duplicate.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / panic-handler / panic-handler-duplicate.rs
1 // compile-flags:-C panic=abort
2
3 #![feature(lang_items)]
4 #![no_std]
5 #![no_main]
6
7 use core::panic::PanicInfo;
8
9 #[panic_handler]
10 fn panic(info: &PanicInfo) -> ! {
11     loop {}
12 }
13
14 #[lang = "panic_impl"]
15 fn panic2(info: &PanicInfo) -> ! { //~ ERROR found duplicate lang item `panic_impl`
16     loop {}
17 }