]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/duplicate_entry_error.rs
1 // normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
2 // note-pattern: first defined in crate `std`.
4 // Test for issue #31788 and E0152
6 #![feature(lang_items)]
8 use std
::panic
::PanicInfo
;
10 #[lang = "panic_impl"]
11 fn panic_impl(info
: &PanicInfo
) -> ! {
12 //~^ ERROR: found duplicate lang item `panic_impl`