Skip to content

prevent destructuring from structs w/ destructors #3147

Closed
@nikomatsakis

Description

@nikomatsakis

This is more of a "preventive" bug than a current one. We have to be careful that if a struct has a destructor you cannot pull it apart using destructuring and unary move:

 let {f, g, h, _} = move foo

I am sure that our first version will have this bug, so I am filing it in advance. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions