Skip to content

Commit 0da1ced

Browse files
committed
---
yaml --- r: 228733 b: refs/heads/try c: d6be183 h: refs/heads/master i: 228731: 04ba490 v: v3
1 parent 674fb83 commit 0da1ced

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 74768e9a6ccac85f813e4125c76f9cb52a2ac618
4+
refs/heads/try: d6be183af1d76a2716f1a3dc00b3ad3a2b746b37
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/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)