File tree 5 files changed +11
-5
lines changed
src/librustc_error_codes/error_codes
5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 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:
3
4
4
5
``` compile_fail,E0025
5
6
struct Foo {
Original file line number Diff line number Diff line change 1
1
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:
3
5
4
6
``` compile_fail,E0034
5
7
struct Test;
Original file line number Diff line number Diff line change 1
1
You cannot use type or const parameters on foreign items.
2
+
2
3
Example of erroneous code:
3
4
4
5
``` compile_fail,E0044
Original file line number Diff line number Diff line change 1
- Items are missing in a trait implementation. Erroneous code example:
1
+ Items are missing in a trait implementation.
2
+
3
+ Erroneous code example:
2
4
3
5
``` compile_fail,E0046
4
6
trait Foo {
Original file line number Diff line number Diff line change 1
1
The parameters of any trait method must match between a trait implementation
2
2
and the trait definition.
3
3
4
- Here are a couple examples of this error :
4
+ Erroneous code example :
5
5
6
6
``` compile_fail,E0053
7
7
trait Foo {
You can’t perform that action at this time.
0 commit comments