]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail/panic-handler-twice.rs
Rollup merge of #66472 - GuillaumeGomez:show-coverage-json, r=ollie27
[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() {}