-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Deriving Clone may silently fail for Arc #19034
Comments
Note that manually implementing Clone works, so this should be a valid deriving IMO |
Hm this is interesting! The problem here is that If you remove the I'm going to close this as working as intended for now, but thanks for the report! |
…en-variant fix: Don't complete doc(hidden) enum variants and use trees
The example:
Without Trait it would work as expected. With trait deriving seems to succeed, but compilation fails on calling clone:
If this is invalid deriving (though I don't see reasons why), it should fail with some meaningful message.
The text was updated successfully, but these errors were encountered: