about summary refs log tree commit diff
path: root/src/test/ui/duplicate_entry_error.rs
blob: 62df42b1a68907f5586b05f16eee244ca91069f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// note-pattern: first defined in crate `std`.

// Test for issue #31788 and E0152

#![feature(lang_items)]

use std::panic::PanicInfo;

#[lang = "panic_impl"]
fn panic_impl(info: &PanicInfo) -> ! {
//~^ ERROR: duplicate lang item found: `panic_impl`.
    loop {}
}

fn main() {}