1 // Regression test for #87573, ensures that duplicate lang items or invalid generics
2 // for lang items doesn't cause ICE.
4 #![feature(no_core, lang_items)]
8 pub static STATIC_BOOL: bool = true;
20 #[lang = "drop_in_place"]
21 //~^ ERROR: `drop_in_place` language item must be applied to a function with at least 1 generic argument
27 //~^ ERROR: `start` language item must be applied to a function with 1 generic argument