Improve E0260
This commit is contained in:
parent
74768e9a6c
commit
d6be183af1
1 changed files with 8 additions and 0 deletions
|
|
@ -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##"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue