Skip to content

Commit 8f3fcec

Browse files
Clean up E0326 explanation
1 parent c3303c7 commit 8f3fcec

File tree

1 file changed

+5
-3
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+5
-3
lines changed

src/librustc_error_codes/error_codes/E0326.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -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.
1+
An implementation of a trait doesn't match the type contraint.
32

4-
Here's an example of this error:
3+
Erroneous code example:
54

65
```compile_fail,E0326
76
trait Foo {
@@ -14,3 +13,6 @@ impl Foo for Bar {
1413
const BAR: u32 = 5; // error, expected bool, found u32
1514
}
1615
```
16+
17+
The types of any associated constants in a trait implementation must match the
18+
types in the trait definition.

0 commit comments

Comments
 (0)