gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

Report invalid uses of `#[derive]`

Open CohenArthur opened this issue 2 years ago • 1 comments

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 avatar Apr 25 '23 11:04 CohenArthur

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

CohenArthur avatar Feb 07 '24 12:02 CohenArthur

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

GuillaumeGomez avatar Mar 05 '24 14:03 GuillaumeGomez