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

Report invalid uses of #[derive] #2154

Open
Tracked by #2172
CohenArthur opened this issue Apr 25, 2023 · 2 comments · May be fixed by #2904
Open
Tracked by #2172

Report invalid uses of #[derive] #2154

CohenArthur opened this issue Apr 25, 2023 · 2 comments · May be fixed by #2904

Comments

@CohenArthur
Copy link
Member

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=393cdbd04e6e32648c23d1816ab1c056

https://doc.rust-lang.org/stable/error_codes/E0774.html

#[derive] attributes should only be allowed on structs, enums and unions.

@CohenArthur
Copy link
Member Author

This triggers an ICE as well so we should definitely fix it

@GuillaumeGomez
Copy link
Contributor

Taking a look to learn gccrs a bit more if you don't mind. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants