1 // compile-flags:-Zprint-mono-items=lazy
3 // rust-lang/rust#90405
4 // Ensure implicit panic calls are collected
6 #![feature(lang_items)]
12 #[lang = "panic_location"]
22 fn panic(_: &'static str) -> ! {
38 trait Div<Rhs = Self> {
40 fn div(self, rhs: Rhs) -> Self::Output;
45 fn div(self, rhs: i32) -> i32 {
50 #[allow(unconditional_panic)]
52 // This implicitly generates a panic call.
57 //~ MONO_ITEM fn <i32 as Div>::div
58 //~ MONO_ITEM fn panic