2020-12-28 20:15:16 +03:00
|
|
|
// dont-check-compiler-stderr
|
2018-05-29 12:33:11 +02: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-23 00:40:32 +02:00
|
|
|
#[panic_handler]
|
2018-05-29 12:33:11 +02:00
|
|
|
fn panic(info: &PanicInfo) -> ! {
|
2020-01-10 14:36:22 +00:00
|
|
|
//~^ ERROR found duplicate lang item `panic_impl`
|
2018-05-29 12:33:11 +02:00
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[lang = "eh_personality"]
|
|
|
|
fn eh() {}
|