]> git.lizzy.rs Git - rust.git/blob - src/test/ui/duplicate_entry_error.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / 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`.
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() {}