]> git.lizzy.rs Git - rust.git/commitdiff
Clean up E0437 explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 18 Mar 2020 13:13:48 +0000 (14:13 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 19 Mar 2020 13:08:22 +0000 (14:08 +0100)
src/librustc_error_codes/error_codes/E0437.md

index 834cf33dbc7f0790b53bac15456d8a898ae4664e..0f924ba69206421bc68cd8ad0bdf74b0ce62ef20 100644 (file)
@@ -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:
 
 ```