-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Cannot derive Clone when using 'braced_empty_structs' #29548
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Yup, seems like a bug. |
Derive can be simplified and always emit |
This also affects enums, e.g. http://is.gd/qwKetS. |
Any progress on this? This has been around a while. It also occurs in enums: #![feature(braced_empty_structs)]
#[derive(Copy, Clone)]
enum Foo {
Bar { },
} |
I was waiting for stabilization of |
Thanks, that would be great. Sent from my iPhone
|
Code:
Playground: https://play.rust-lang.org/?gist=7d3786c5b71415babb04&version=nightly
Error:
This should work just like
struct Test;
unless i'm missing something?The text was updated successfully, but these errors were encountered: