We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3303c7 commit 8f3fcecCopy full SHA for 8f3fcec
src/librustc_error_codes/error_codes/E0326.md
@@ -1,7 +1,6 @@
1
-The types of any associated constants in a trait implementation must match the
2
-types in the trait definition. This error indicates that there was a mismatch.
+An implementation of a trait doesn't match the type contraint.
3
4
-Here's an example of this error:
+Erroneous code example:
5
6
```compile_fail,E0326
7
trait Foo {
@@ -14,3 +13,6 @@ impl Foo for Bar {
14
13
const BAR: u32 = 5; // error, expected bool, found u32
15
}
16
```
+
17
+The types of any associated constants in a trait implementation must match the
18
+types in the trait definition.
0 commit comments