-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
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
'internal error: entered unreachable code' when generating struct fields using Results #232
Comments
Thanks for opening the issue! |
I believe the |
@NyxCode the problem with the missing |
When doing something like:
I get the error 'internal error: entered unreachable code' - from
lib.rs:520:9
on main. (I'm using the latest commit).This could be user error as if I do:
it works fine.
If this behaviour is intended it might be best to replace the use of
unreachable!()
for clarity?On another note - using inline like this means no imports are generated for types that appear in the inline, e.g for:
the generated type I get for
State
is:The other files generate correctly (
Enum
andEnumWithName
), butEnum
is not imported and so the file isn't totally valid to compile. Is there a way around this, or is this behaviour or my use ofinline
here not intended.Thanks for the crate as well - I've got a lot of use out of it!
The text was updated successfully, but these errors were encountered: