]> git.lizzy.rs Git - rust.git/blob - tests/ui/duplicate_entry_error.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / 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`.
3
4 // Test for issue #31788 and E0152
5
6 #![feature(lang_items)]
7
8 use std::panic::PanicInfo;
9
10 #[lang = "panic_impl"]
11 fn panic_impl(info: &PanicInfo) -> ! {
12 //~^ ERROR: found duplicate lang item `panic_impl`
13     loop {}
14 }
15
16 fn main() {}