Skip to content

Cannot automatically derive equality for structures implementing the drop trait. #6341

Closed
@mstewartgallus

Description

@mstewartgallus

In the latest incoming (last commit 270b508) the compiler gives an error when one tries to automatically derive equality for structures implementing the Drop trait. This error is:

error: deconstructing struct not allowed in pattern (it has a destructor)

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