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##"