Get the latest tech news

# [derive(Clone)] Is Broken


Not just `#[derive(Clone)]`, but all of the standard trait derives are

This applies to practically all builtin derive traits, such as Clone, PartialEq, Eq, or even Debug. So I've opened an issue about replicating the builtin derive traits in a less restrictive and thus correct way in the derive_more crate's GitHub repository. The reason I chose this crate is because it already has a lot of users and is the main place for derive implementations.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of derive(Clone

derive(Clone