]> git.lizzy.rs Git - rust.git/commitdiff
Add explanatory text for error E0599
authorgreg <greg.shuflin@protonmail.com>
Wed, 18 Oct 2017 04:43:02 +0000 (21:43 -0700)
committergreg <greg.shuflin@protonmail.com>
Sat, 21 Oct 2017 08:02:16 +0000 (01:02 -0700)
Add a text description of this error instead of just example error code

src/librustc_typeck/diagnostics.rs

index 8f91d07b53fb26fc39b5c5d69f86bfbbc55f929d..594cd0878cbfbc62144d3aabfed38bf24350174c 100644 (file)
@@ -3986,6 +3986,10 @@ fn main() { }
 "##,
 
 E0599: r##"
+This error occurs when a method is used on a type which doesn't implement it:
+
+Erroneous code example:
+
 ```compile_fail,E0599
 struct Mouth;