blob: 05bef66d849a630c7ea27aa090801dc7e39322bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// dont-check-compiler-stderr
// aux-build:some-panic-impl.rs
#![feature(lang_items)]
#![no_std]
#![no_main]
extern crate some_panic_impl;
use core::panic::PanicInfo;
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
//~^ ERROR found duplicate lang item `panic_impl`
loop {}
}
#[lang = "eh_personality"]
fn eh() {}
|