From 23bf3300ad913f9315d67e059cbe3a19d098779a Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 17 Oct 2017 21:43:02 -0700 Subject: [PATCH] Add explanatory text for error E0599 Add a text description of this error instead of just example error code --- src/librustc_typeck/diagnostics.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 8f91d07b53fb2..594cd0878cbfb 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;