From 18f4e8ce5eabd77c872b5429b9a0172f0d446c9e Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 24 Jul 2015 12:19:36 +0200 Subject: [PATCH] Add E0430 error explanation --- src/librustc_resolve/diagnostics.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs index d3ec6e558b9e..8762c82015eb 100644 --- a/src/librustc_resolve/diagnostics.rs +++ b/src/librustc_resolve/diagnostics.rs @@ -475,6 +475,18 @@ struct Bar2; // ok! ``` "##, +E0430: r##" +The `self` import appears more than once in the list. + +``` +use something::{self, self}; // error: `self` import can only appear once in + // the list +``` + +Please verify you didn't misspell the import name or remove the duplicated +`self` import. +"##, + E0433: r##" Invalid import. Example of erroneous code: @@ -519,7 +531,6 @@ register_diagnostics! { E0426, // use of undeclared label E0427, // cannot use `ref` binding mode with ... E0429, // `self` imports are only allowed within a { } list - E0430, // `self` import can only appear once in the list E0431, // `self` import can only appear in an import list with a non-empty // prefix E0432, // unresolved import