]> git.lizzy.rs Git - rust.git/blob - tests/ui/panic-handler/panic-handler-twice.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / panic-handler / panic-handler-twice.rs
1 // dont-check-compiler-stderr
2 // aux-build:some-panic-impl.rs
3
4 #![feature(lang_items)]
5 #![no_std]
6 #![no_main]
7
8 extern crate some_panic_impl;
9
10 use core::panic::PanicInfo;
11
12 #[panic_handler]
13 fn panic(info: &PanicInfo) -> ! {
14     //~^ ERROR found duplicate lang item `panic_impl`
15     loop {}
16 }
17
18 #[lang = "eh_personality"]
19 fn eh() {}