Detect incorrect number of lang item generics
This commit is contained in:
parent
558553272d
commit
385a233f18
12 changed files with 319 additions and 308 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue