]> git.lizzy.rs Git - rust.git/commitdiff
Improve E0260
authorManish Goregaokar <manishsmail@gmail.com>
Sun, 19 Jul 2015 13:04:06 +0000 (18:34 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Thu, 23 Jul 2015 07:19:26 +0000 (12:49 +0530)
src/librustc/diagnostics.rs

index 02f4cea87ca5f764339f5805621e49ff2cde02aa..0d949c98023c6e9c0821d6f355b38707ac260cbc 100644 (file)
@@ -1002,6 +1002,14 @@ enum Method {
 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##"