1 // normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
2 // note-pattern: first defined in crate `std`.
3 
4 // Test for issue #31788 and E0152
5 
6 #![feature(lang_items)]
7 
8 use std::panic::PanicInfo;
9 
10 #[lang = "panic_impl"]
panic_impl(info: &PanicInfo) -> !11 fn panic_impl(info: &PanicInfo) -> ! {
12 //~^ ERROR: found duplicate lang item `panic_impl`
13     loop {}
14 }
15 
main()16 fn main() {}
17