about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-10-21 09:47:21 -0400
committerGitHub <noreply@github.com>2017-10-21 09:47:21 -0400
commit22e808a2faf0da0236675f49d58ac683d32f3f68 (patch)
tree3868afddbfa253e5710d64164878e84fe426b1ca /src
parentcf29743ea691952b2825c31ecf10618435854b29 (diff)
parent23bf3300ad913f9315d67e059cbe3a19d098779a (diff)
downloadrust-22e808a2faf0da0236675f49d58ac683d32f3f68.tar.gz
rust-22e808a2faf0da0236675f49d58ac683d32f3f68.zip
Rollup merge of #45356 - neunenak:master, r=GuillaumeGomez
Add explanatory text for error E0599

Add a text description of this error instead of just example error code

r? GuillaumeGomez
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/diagnostics.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index 8f91d07b53f..594cd0878cb 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -3986,6 +3986,10 @@ details.
 "##,
 
 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;