diff options
| author | asquared31415 <34665709+asquared31415@users.noreply.github.com> | 2021-08-14 21:38:37 -0400 |
|---|---|---|
| committer | asquared31415 <34665709+asquared31415@users.noreply.github.com> | 2021-08-23 10:15:25 -0400 |
| commit | 385a233f1836191837e1a7e575425cf0ce1c9843 (patch) | |
| tree | 80b379ac05e4c9a2df78beae94fe8f1c986667aa /compiler/rustc_error_codes | |
| parent | 558553272d5f80ca6484ed3de961fe4f1a9d411d (diff) | |
| download | rust-385a233f1836191837e1a7e575425cf0ce1c9843.tar.gz rust-385a233f1836191837e1a7e575425cf0ce1c9843.zip | |
Detect incorrect number of lang item generics
Diffstat (limited to 'compiler/rustc_error_codes')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0152.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0152.md b/compiler/rustc_error_codes/src/error_codes/E0152.md index 120c96b4211..ef17b8b4c75 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0152.md +++ b/compiler/rustc_error_codes/src/error_codes/E0152.md @@ -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 |
