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 17:15:16 +00:00
// dont-check-compiler-stderr
2018-05-29 10:33:11 +00: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 10:33:11 +00:00
fn panic(info: &PanicInfo) -> ! {
//~^ ERROR found duplicate lang item `panic_impl`
2018-05-29 10:33:11 +00:00
loop {}
}
#[lang = "eh_personality"]
fn eh() {}