File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11An associated const was implemented when another trait item was expected.
2+
23Erroneous code example:
34
45``` compile_fail,E0323
Original file line number Diff line number Diff line change 1- A method was implemented when another trait item was expected. Erroneous
2- code example:
1+ A method was implemented when another trait item was expected.
2+
3+ Erroneous code example:
34
45``` compile_fail,E0324
56struct Bar;
Original file line number Diff line number Diff line change 11An associated type was implemented when another trait item was expected.
2+
23Erroneous code example:
34
45``` compile_fail,E0325
Original file line number Diff line number Diff line change 1- The types of any associated constants in a trait implementation must match the
2- types in the trait definition. This error indicates that there was a mismatch.
1+ An implementation of a trait doesn't match the type contraint.
32
4- Here's an example of this error :
3+ Erroneous code example:
54
65``` compile_fail,E0326
76trait Foo {
@@ -14,3 +13,6 @@ impl Foo for Bar {
1413 const BAR: u32 = 5; // error, expected bool, found u32
1514}
1615```
16+
17+ The types of any associated constants in a trait implementation must match the
18+ types in the trait definition.
You can’t perform that action at this time.
0 commit comments