2020-12-28 11:15:16 -06:00
|
|
|
// dont-check-compiler-stderr
|
2018-05-29 05:33:11 -05:00
|
|
|
// aux-build:some-panic-impl.rs
|
|
|
|
|
|
|
|
#![feature(lang_items)]
|
|
|
|
#![no_std]
|
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
extern crate some_panic_impl;
|
|
|
|
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
|
2018-08-22 17:40:32 -05:00
|
|
|
#[panic_handler]
|
2018-05-29 05:33:11 -05:00
|
|
|
fn panic(info: &PanicInfo) -> ! {
|
2020-01-10 08:36:22 -06:00
|
|
|
//~^ ERROR found duplicate lang item `panic_impl`
|
2018-05-29 05:33:11 -05:00
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[lang = "eh_personality"]
|
|
|
|
fn eh() {}
|