]>
Commit | Line | Data |
---|---|---|
72b1a166 | 1 | // normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib" |
54a0048b | 2 | // note-pattern: first defined in crate `std`. |
85aaf69f | 3 | |
54a0048b | 4 | // Test for issue #31788 and E0152 |
223e47cc | 5 | |
7453a54e | 6 | #![feature(lang_items)] |
c34b1796 | 7 | |
94b46f34 XL |
8 | use std::panic::PanicInfo; |
9 | ||
10 | #[lang = "panic_impl"] | |
11 | fn panic_impl(info: &PanicInfo) -> ! { | |
46de9a89 | 12 | //~^ ERROR: found duplicate lang item `panic_impl` |
7453a54e | 13 | loop {} |
c34b1796 | 14 | } |
7453a54e | 15 | |
ff7c6d11 | 16 | fn main() {} |