Skip to content

Commit d6be183

Browse files
committed
Improve E0260
1 parent 74768e9 commit d6be183

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustc/diagnostics.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,14 @@ you prefer them unqualified, you can import the variants into scope:
10021002
use Method::*;
10031003
enum Method { GET, POST }
10041004
```
1005+
1006+
If you want others to be able to import variants from your module directly, use
1007+
`pub use`:
1008+
1009+
```
1010+
pub use Method::*;
1011+
enum Method { GET, POST }
1012+
```
10051013
"##,
10061014

10071015
E0261: r##"

0 commit comments

Comments
 (0)