Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent destructuring from structs w/ destructors #3147

Closed
nikomatsakis opened this issue Aug 8, 2012 · 1 comment
Closed

prevent destructuring from structs w/ destructors #3147

nikomatsakis opened this issue Aug 8, 2012 · 1 comment
Milestone

Comments

@nikomatsakis
Copy link
Contributor

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. :)

@nikomatsakis
Copy link
Contributor Author

Note: this came up in #2955

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants