Skip to content

Commit 23bf330

Browse files
committed
Add explanatory text for error E0599
Add a text description of this error instead of just example error code
1 parent f6d7514 commit 23bf330

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3986,6 +3986,10 @@ details.
39863986
"##,
39873987

39883988
E0599: r##"
3989+
This error occurs when a method is used on a type which doesn't implement it:
3990+
3991+
Erroneous code example:
3992+
39893993
```compile_fail,E0599
39903994
struct Mouth;
39913995

0 commit comments

Comments
 (0)