From 050b8d370bc400bb0863de3800f1f20138d41837 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 4 Aug 2015 12:02:30 +0200 Subject: [PATCH] Add E0412 error explanation --- src/librustc_resolve/diagnostics.rs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index cb14b843522e..b567d19f0a3d 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -397,6 +397,23 @@ impl Bar { ``` "##, +E0412: r##" +An undeclared type name was used. Example of erroneous code: + +``` +impl Something {} // error: use of undeclared type name `Something` +``` + +To fix this error, please verify you didn't misspell the type name or +you did declare it. Example: + +``` +struct Something; + +impl Something {} +``` +"##, + E0413: r##" A declaration shadows an enum variant or unit-like struct in scope. Example of erroneous code: @@ -725,7 +742,6 @@ register_diagnostics! { // pattern #1 E0410, // variable from pattern is not bound in pattern 1 E0411, // use of `Self` outside of an impl or trait - E0412, // use of undeclared E0414, // only irrefutable patterns allowed here E0415, // identifier is bound more than once in this parameter list E0416, // identifier is bound more than once in the same pattern