rust/tests/ui/panic-handler/panic-handler-twice.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
329 B
Rust
Raw Normal View History

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;
#[panic_handler]
2018-05-29 05:33:11 -05:00
fn panic(info: &PanicInfo) -> ! {
//~^ ERROR found duplicate lang item `panic_impl`
2018-05-29 05:33:11 -05:00
loop {}
}
#[lang = "eh_personality"]
fn eh() {}