Skip to content

Implement Clone for all Copy types "by magic" #33507

Closed
@DemiMarie

Description

@DemiMarie

This probably needs an RFC, but one solution to the problem of Copy not implying Clone is to make this happen via compiler magic: the compiler "magically" inserts an implementation of Clone for any Copy type.

GHC does something similar with Coercible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions