diff options
| author | bors <bors@rust-lang.org> | 2020-03-20 15:58:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-20 15:58:34 +0000 |
| commit | 2835ca65845c5fac8da2a2612a06b12ad2f4c77c (patch) | |
| tree | cea22dab1002cfa28d197895ba3958c75d6a1186 /src/librustc_error_codes/error_codes | |
| parent | f4c675c476c18b1a11041193f2f59d695b126bc8 (diff) | |
| parent | 43c7a503fe7073c83a92b65c59de8cb820cf3b97 (diff) | |
| download | rust-2835ca65845c5fac8da2a2612a06b12ad2f4c77c.tar.gz rust-2835ca65845c5fac8da2a2612a06b12ad2f4c77c.zip | |
Auto merge of #70174 - JohnTitor:rollup-0lum0jh, r=JohnTitor
Rollup of 9 pull requests Successful merges: - #69618 (Clarify the relationship between `forget()` and `ManuallyDrop`.) - #69768 (Compute the correct layout for variants of uninhabited enums) - #69935 (codegen/mir: support polymorphic `InstanceDef`s) - #70103 (Clean up E0437 explanation) - #70131 (Add regression test for TAIT lifetime inference (issue #55099)) - #70133 (remove unused imports) - #70145 (doc: Add quote to .init_array) - #70146 (Clean up e0438 explanation) - #70150 (triagebot.toml: accept cleanup-crew) Failed merges: r? @ghost
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0437.md | 9 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0438.md | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/librustc_error_codes/error_codes/E0437.md b/src/librustc_error_codes/error_codes/E0437.md index 834cf33dbc7..0f924ba6920 100644 --- a/src/librustc_error_codes/error_codes/E0437.md +++ b/src/librustc_error_codes/error_codes/E0437.md @@ -1,7 +1,5 @@ -Trait implementations can only implement associated types that are members of -the trait in question. This error indicates that you attempted to implement -an associated type whose name does not match the name of any associated type -in the trait. +An associated type whose name does not match any of the associated types +in the trait was used when implementing the trait. Erroneous code example: @@ -13,6 +11,9 @@ impl Foo for i32 { } ``` +Trait implementations can only implement associated types that are members of +the trait in question. + The solution to this problem is to remove the extraneous associated type: ``` diff --git a/src/librustc_error_codes/error_codes/E0438.md b/src/librustc_error_codes/error_codes/E0438.md index cb141a5d24a..13723bc3009 100644 --- a/src/librustc_error_codes/error_codes/E0438.md +++ b/src/librustc_error_codes/error_codes/E0438.md @@ -1,7 +1,5 @@ -Trait implementations can only implement associated constants that are -members of the trait in question. This error indicates that you -attempted to implement an associated constant whose name does not -match the name of any associated constant in the trait. +An associated constant whose name does not match any of the associated constants +in the trait was used when implementing the trait. Erroneous code example: @@ -13,6 +11,9 @@ impl Foo for i32 { } ``` +Trait implementations can only implement associated constants that are +members of the trait in question. + The solution to this problem is to remove the extraneous associated constant: ``` |
