]> git.lizzy.rs Git - rust.git/blob - src/test/ui/duplicate_entry_error.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / duplicate_entry_error.rs
1 // note-pattern: first defined in crate `std`.
2
3 // Test for issue #31788 and E0152
4
5 #![feature(lang_items)]
6
7 use std::panic::PanicInfo;
8
9 #[lang = "panic_impl"]
10 fn panic_impl(info: &PanicInfo) -> ! {
11 //~^ ERROR: duplicate lang item found: `panic_impl`.
12     loop {}
13 }
14
15 fn main() {}