Skip to content

Commit f9fdc38

Browse files
Clean up E0025, E0034, E0044, E0046 and E0053
1 parent 041c9f6 commit f9fdc38

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

src/librustc_error_codes/error_codes/E0025.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Each field of a struct can only be bound once in a pattern. Erroneous code
2-
example:
1+
Each field of a struct can only be bound once in a pattern.
2+
3+
Erroneous code example:
34

45
```compile_fail,E0025
56
struct Foo {

src/librustc_error_codes/error_codes/E0034.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
The compiler doesn't know what method to call because more than one method
2-
has the same prototype. Erroneous code example:
2+
has the same prototype.
3+
4+
Erroneous code example:
35

46
```compile_fail,E0034
57
struct Test;

src/librustc_error_codes/error_codes/E0044.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
You cannot use type or const parameters on foreign items.
2+
23
Example of erroneous code:
34

45
```compile_fail,E0044

src/librustc_error_codes/error_codes/E0046.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Items are missing in a trait implementation. Erroneous code example:
1+
Items are missing in a trait implementation.
2+
3+
Erroneous code example:
24

35
```compile_fail,E0046
46
trait Foo {

src/librustc_error_codes/error_codes/E0053.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The parameters of any trait method must match between a trait implementation
22
and the trait definition.
33

4-
Here are a couple examples of this error:
4+
Erroneous code example:
55

66
```compile_fail,E0053
77
trait Foo {

0 commit comments

Comments
 (0)