Skip to content

Unpacking tuples through assignment #12138

Closed
@Tobba

Description

@Tobba

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

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