mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
20 lines
331 B
Rust
20 lines
331 B
Rust
//@ 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() {}
|