You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered this issue as well, and it appears to be a 2018 Edition issue. The code compiles correctly with the under then 2015 Edition but fails to compile (with the error provided above) under the 2018 Edition.
Under the 2018 Edition, the use Status::{Poor, Rich}; should be use crate::Status::{Poor, Rich};. I will submit a PR with this change in case that is helpful, but please feel free to handle it differently if there is a better resolution.
Currently I'm reading/learning the enum_use section where I got the following error for the use inside the main function:
Please guide me if I missed something. Thank you.
The text was updated successfully, but these errors were encountered: