From d6be183af1d76a2716f1a3dc00b3ad3a2b746b37 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sun, 19 Jul 2015 18:34:06 +0530 Subject: [PATCH] Improve E0260 --- src/librustc/diagnostics.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 02f4cea87ca5..0d949c98023c 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -1002,6 +1002,14 @@ you prefer them unqualified, you can import the variants into scope: use Method::*; enum Method { GET, POST } ``` + +If you want others to be able to import variants from your module directly, use +`pub use`: + +``` +pub use Method::*; +enum Method { GET, POST } +``` "##, E0261: r##"