1 // Checks whether declaring a lang item with the wrong number
2 // of generic arguments crashes the compiler (issue #83893).
4 #![feature(lang_items,no_core)]
12 trait MyIndex<'a, T> {}
13 //~^^ ERROR: `index` language item must be applied to a trait with 1 generic argument [E0718]
18 //~^ ERROR: cannot index into a value of type `[{integer}; 5]` [E0608]