{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreih2yxjdrz2p4wcph47huqsfq5x45qhq5epfxzzorkloxsaf4rmaga",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mnkx6naaedk2"
  },
  "path": "/t/make-derive-copy-enough-for-both-clone-and-copy/24371#post_15",
  "publishedAt": "2026-06-05T18:48:04.000Z",
  "site": "https://internals.rust-lang.org",
  "tags": [
    "derive_aliases"
  ],
  "textContent": "I think the right feature for abbreviating long derive lines is some kind of derive alias. We could even intentionally overload the `Copy` derive to mean `Copy, Clone` similar to what is done for the type `Result` sometimes.\n\nRight now there's a crate for this, derive_aliases but maybe it should be part of Rust proper.",
  "title": "Make `#[derive(Copy)]` enough for both `Clone` and `Copy`"
}