Skip to content

Commit

Permalink
Improve E0260
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Jul 23, 2015
1 parent 74768e9 commit d6be183
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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##"
Expand Down

0 comments on commit d6be183

Please sign in to comment.