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

Unpacking tuples through assignment #12138

Closed
Tobba opened this issue Feb 9, 2014 · 2 comments
Closed

Unpacking tuples through assignment #12138

Tobba opened this issue Feb 9, 2014 · 2 comments

Comments

@Tobba
Copy link
Contributor

Tobba commented Feb 9, 2014

This should be possible

let (mut a, mut b) = (0u, 0u);
(a, b) = (b, a);

Since this syntax works for let, not allowing this would be mildly inconsistent

@glaebhoerl
Copy link
Contributor

dup of #10174

@alexcrichton
Copy link
Member

Closing as a dupe.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jan 25, 2024
from_over_into: suggest a correct conversion to ()

changelog: [`from_over_into`]: suggest a correct conversion to `()`

Fix rust-lang#12138
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

3 participants