Skip to content
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

Empty r#type for struct Test(pub [u8; 32]) #77

Closed
coder0xff opened this issue Nov 27, 2023 · 0 comments · Fixed by #78
Closed

Empty r#type for struct Test(pub [u8; 32]) #77

coder0xff opened this issue Nov 27, 2023 · 0 comments · Fixed by #78
Labels
bug Something isn't working not-stale

Comments

@coder0xff
Copy link

It works fine with struct Test([u8; 32])

        UnnamedField {
            vis: Default,
            type: [
                Group {
                    delimiter: Bracket,
                    stream: TokenStream [
                        Ident {
                            sym: u8,
                        },
                        Punct {
                            char: ';',
                            spacing: Alone,
                        },
                        Literal {
                            lit: 32,
                        },
                    ],
                },
            ],
            attributes: [],
        },

But struct Test(pub [u8; 32]) comes out

        UnnamedField {
            vis: Pub,
            type: [],
            attributes: [],
        },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working not-stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants