about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-02-21 13:32:04 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-02-21 13:34:10 +0100
commit8f3fcec351fcc24aba462f200c60dd712592b64d (patch)
tree98e458994e36cfcfd60116189efdfa3f05b15a82
parentc3303c7b086fef4d2571869fe6040ca9455c6e38 (diff)
downloadrust-8f3fcec351fcc24aba462f200c60dd712592b64d.tar.gz
rust-8f3fcec351fcc24aba462f200c60dd712592b64d.zip
Clean up E0326 explanation
-rw-r--r--src/librustc_error_codes/error_codes/E0326.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0326.md b/src/librustc_error_codes/error_codes/E0326.md
index 0702d00c2de..3d357819c7f 100644
--- a/src/librustc_error_codes/error_codes/E0326.md
+++ b/src/librustc_error_codes/error_codes/E0326.md
@@ -1,7 +1,6 @@
-The types of any associated constants in a trait implementation must match the
-types in the trait definition. This error indicates that there was a mismatch.
+An implementation of a trait doesn't match the type contraint.
 
-Here's an example of this error:
+Erroneous code example:
 
 ```compile_fail,E0326
 trait Foo {
@@ -14,3 +13,6 @@ impl Foo for Bar {
     const BAR: u32 = 5; // error, expected bool, found u32
 }
 ```
+
+The types of any associated constants in a trait implementation must match the
+types in the trait definition.