Skip to content

warning about implicit copies should explain why type is not implicitly copyable #2500

Closed
@nikomatsakis

Description

@nikomatsakis

It would be nice if the warning "implicitly copying a non-implicitly-copyable value" varied depending on why the variable was "not-implicitly-copyable". For example:

  • warning: implicitly copying a record with mutable fields
  • warning: implicitly copying unique values, which entails a deep clone

etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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