Clean up E0326 explanation
This commit is contained in:
parent
c3303c7b08
commit
8f3fcec351
|
@ -1,7 +1,6 @@
|
||||||
The types of any associated constants in a trait implementation must match the
|
An implementation of a trait doesn't match the type contraint.
|
||||||
types in the trait definition. This error indicates that there was a mismatch.
|
|
||||||
|
|
||||||
Here's an example of this error:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0326
|
```compile_fail,E0326
|
||||||
trait Foo {
|
trait Foo {
|
||||||
|
@ -14,3 +13,6 @@ impl Foo for Bar {
|
||||||
const BAR: u32 = 5; // error, expected bool, found u32
|
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.
|
||||||
|
|
Loading…
Reference in New Issue