Skip to content

Commit

Permalink
Clean up E0025, E0034, E0044, E0046 and E0053
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 15, 2019
1 parent 041c9f6 commit f9fdc38
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/librustc_error_codes/error_codes/E0025.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Each field of a struct can only be bound once in a pattern. Erroneous code
example:
Each field of a struct can only be bound once in a pattern.

Erroneous code example:

```compile_fail,E0025
struct Foo {
Expand Down
4 changes: 3 additions & 1 deletion src/librustc_error_codes/error_codes/E0034.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
The compiler doesn't know what method to call because more than one method
has the same prototype. Erroneous code example:
has the same prototype.

Erroneous code example:

```compile_fail,E0034
struct Test;
Expand Down
1 change: 1 addition & 0 deletions src/librustc_error_codes/error_codes/E0044.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
You cannot use type or const parameters on foreign items.

Example of erroneous code:

```compile_fail,E0044
Expand Down
4 changes: 3 additions & 1 deletion src/librustc_error_codes/error_codes/E0046.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Items are missing in a trait implementation. Erroneous code example:
Items are missing in a trait implementation.

Erroneous code example:

```compile_fail,E0046
trait Foo {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0053.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The parameters of any trait method must match between a trait implementation
and the trait definition.

Here are a couple examples of this error:
Erroneous code example:

```compile_fail,E0053
trait Foo {
Expand Down

0 comments on commit f9fdc38

Please sign in to comment.