]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail/panic-handler-twice.rs
Auto merge of #68423 - Centril:rollup-bdjykrv, r=Centril
[rust.git] / src / test / compile-fail / panic-handler-twice.rs
1 // aux-build:some-panic-impl.rs
2
3 #![feature(lang_items)]
4 #![no_std]
5 #![no_main]
6
7 extern crate some_panic_impl;
8
9 use core::panic::PanicInfo;
10
11 #[panic_handler]
12 fn panic(info: &PanicInfo) -> ! {
13     //~^ ERROR found duplicate lang item `panic_impl`
14     loop {}
15 }
16
17 #[lang = "eh_personality"]
18 fn eh() {}