diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-03-20 17:02:06 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-20 17:02:06 +0900 |
| commit | 532133b71de10b568604773f3285ab0ebdfeca61 (patch) | |
| tree | 441e02ad0132624d18af64cf16350cff02033288 /src/librustc_error_codes/error_codes | |
| parent | 9dc699430f55af49a7e4f17de9a4482bfd54d481 (diff) | |
| parent | be06f678e11b2773002e65ad63ecf235c0162dd0 (diff) | |
| download | rust-532133b71de10b568604773f3285ab0ebdfeca61.tar.gz rust-532133b71de10b568604773f3285ab0ebdfeca61.zip | |
Rollup merge of #70103 - GuillaumeGomez:cleanup-e0437, r=Dylan-DPC
Clean up E0437 explanation r? @Dylan-DPC
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0437.md | 9 |
1 files changed, 5 insertions, 4 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: ``` |
