Skip to content

Commit 8ed5865

Browse files
authored
Rollup merge of rust-lang#68482 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPC
clean up error codes explanation r? @Dylan-DPC
2 parents 39407c9 + 833ffd7 commit 8ed5865

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/librustc_error_codes/error_codes/E0220.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
You used an associated type which isn't defined in the trait.
1+
The associated type used was not defined in the trait.
2+
23
Erroneous code example:
34

45
```compile_fail,E0220

src/librustc_error_codes/error_codes/E0221.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
An attempt was made to retrieve an associated type, but the type was ambiguous.
2-
For example:
2+
3+
Erroneous code example:
34

45
```compile_fail,E0221
56
trait T1 {}

src/librustc_error_codes/error_codes/E0222.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
An attempt was made to constrain an associated type.
2-
For example:
2+
3+
Erroneous code example:
34

45
```compile_fail,E0222
56
pub trait Vehicle {

0 commit comments

Comments
 (0)