Skip to content

allow nominal types to be declared non-copyable #2525

@nikomatsakis

Description

@nikomatsakis

There are many times when, for correctness or performance, we would like to guarantee that instances of a class are not copyable. This can be synthesized now by including a drop() method or by embedding a resource, but that's a hack that adds unnecessary overhead.

Metadata

Metadata

Assignees

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)A-type-systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions