Detect incorrect number of lang item generics

This commit is contained in:
asquared31415 2021-08-14 21:38:37 -04:00
parent 558553272d
commit 385a233f18
12 changed files with 319 additions and 308 deletions

View file

@ -6,7 +6,7 @@ Erroneous code example:
#![feature(lang_items)]
#[lang = "owned_box"]
struct Foo; // error: duplicate lang item found: `owned_box`
struct Foo<T>(T); // error: duplicate lang item found: `owned_box`
```
Lang items are already implemented in the standard library. Unless you are