File tree 4 files changed +10
-5
lines changed
src/librustc_error_codes/error_codes
4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
An associated const was implemented when another trait item was expected.
2
+
2
3
Erroneous code example:
3
4
4
5
``` 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:
3
4
4
5
``` compile_fail,E0324
5
6
struct Bar;
Original file line number Diff line number Diff line change 1
1
An associated type was implemented when another trait item was expected.
2
+
2
3
Erroneous code example:
3
4
4
5
``` 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.
3
2
4
- Here's an example of this error :
3
+ Erroneous code example:
5
4
6
5
``` compile_fail,E0326
7
6
trait Foo {
@@ -14,3 +13,6 @@ impl Foo for Bar {
14
13
const BAR: u32 = 5; // error, expected bool, found u32
15
14
}
16
15
```
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