File tree Expand file tree Collapse file tree 5 files changed +11
-5
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 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:
34
45``` compile_fail,E0025
56struct Foo {
Original file line number Diff line number Diff line change 11The 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
57struct Test;
Original file line number Diff line number Diff line change 11You cannot use type or const parameters on foreign items.
2+
23Example of erroneous code:
34
45``` 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:
24
35``` compile_fail,E0046
46trait Foo {
Original file line number Diff line number Diff line change 11The parameters of any trait method must match between a trait implementation
22and the trait definition.
33
4- Here are a couple examples of this error :
4+ Erroneous code example :
55
66``` compile_fail,E0053
77trait Foo {
You can’t perform that action at this time.
0 commit comments