We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move it outside and it works fine. Perhaps similar to #18083 and #21831
mod my_mod { use Enum::*; enum Enum { A, B, } } fn main() {}
<anon>:2:9: 2:13 error: unresolved import `Enum::*`. Maybe a missing `extern crate Enum`? <anon>:2 use Enum::*; ^~~~ error: aborting due to previous error playpen: application terminated with error code 101
The text was updated successfully, but these errors were encountered:
This is actually because use always takes global paths instead of relative. In this case the code needs to be changed to:
use
mod my_mod { use my_mod::Enum::*; enum Enum { A, B, } } fn main() {}
Sorry, something went wrong.
Oh. It used to work. Thanks.
No branches or pull requests
Move it outside and it works fine. Perhaps similar to #18083 and #21831
The text was updated successfully, but these errors were encountered: