Rollup merge of #69346 - GuillaumeGomez:clean-up-e032x-explanations, r=Dylan-DPC

Clean up E0323, E0324, E0325 and E0326 explanations

r? @Dylan-DPC
This commit is contained in:
Dylan DPC 2020-02-22 18:43:03 +05:30 committed by GitHub
commit 1cb9fb5e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,5 @@
An associated const was implemented when another trait item was expected.
Erroneous code example:
```compile_fail,E0323

View File

@ -1,5 +1,6 @@
A method was implemented when another trait item was expected. Erroneous
code example:
A method was implemented when another trait item was expected.
Erroneous code example:
```compile_fail,E0324
struct Bar;

View File

@ -1,4 +1,5 @@
An associated type was implemented when another trait item was expected.
Erroneous code example:
```compile_fail,E0325

View File

@ -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.