]> git.proxmox.com Git - rustc.git/blame - src/test/compile-fail/panic-handler-twice.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / compile-fail / panic-handler-twice.rs
CommitLineData
94b46f34 1// aux-build:some-panic-impl.rs
1a4d82fc 2
94b46f34
XL
3#![feature(lang_items)]
4#![no_std]
5#![no_main]
6
7extern crate some_panic_impl;
9e0c209e 8
94b46f34
XL
9use core::panic::PanicInfo;
10
b7449926 11#[panic_handler]
94b46f34 12fn panic(info: &PanicInfo) -> ! {
dfeec247 13 //~^ ERROR found duplicate lang item `panic_impl`
94b46f34
XL
14 loop {}
15}
83c7162d 16
94b46f34
XL
17#[lang = "eh_personality"]
18fn eh() {}