Skip to content

Commit 73b369d

Browse files
Improve E0323 error explanation
1 parent 73685af commit 73b369d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,8 +1279,8 @@ fn main() {
12791279
"##,
12801280

12811281
E0103: r##"
1282-
You hit this error because the compiler the compiler lacks information
1283-
to determine a type for this pattern binding.
1282+
You hit this error because the compiler lacks information to determine a type
1283+
for this pattern binding.
12841284
12851285
You have two possibilities to solve this situation:
12861286
* Give an explicit definition of the expression
@@ -2437,8 +2437,8 @@ impl Foo for Bar {
24372437
}
24382438
```
24392439
2440-
To fix this error, please verify you didn't misspell the associated
2441-
const name or you did implement the good trait item. Example:
2440+
Please verify that the associated const wasn't misspelled and the correct trait
2441+
was implemented. Example:
24422442
24432443
```
24442444
struct Bar;

0 commit comments

Comments
 (0)