]>
Commit | Line | Data |
---|---|---|
94b46f34 | 1 | // aux-build:some-panic-impl.rs |
1a4d82fc | 2 | |
94b46f34 XL |
3 | #![feature(lang_items)] |
4 | #![no_std] | |
5 | #![no_main] | |
6 | ||
7 | extern crate some_panic_impl; | |
9e0c209e | 8 | |
94b46f34 XL |
9 | use core::panic::PanicInfo; |
10 | ||
b7449926 | 11 | #[panic_handler] |
94b46f34 | 12 | fn 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"] |
18 | fn eh() {} |