Skip to content

Under what conditions can you implement Copy for a union? #65748

Closed
@Centril

Description

@Centril

From #32836 (comment):

Under what conditions can you implement Copy for a union? For example, what if some variants are of non-Copy type? All variants?

@RalfJung notes in #55149 (comment) that:

The RFC doesn't say anything about that, but I think indeed the answer should be "all variants".

cc #55149

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-untagged_unions`#![feature(untagged_unions)]`T-langRelevant to the language team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions