Skip to content

Should work? let a; let b; (a, b) = (1, 2); #8273

Closed
@jeaye

Description

@jeaye

This seems like it should be allowed, but it errors out with:

<anon>:5:24: 5:25 error: use of possibly uninitialized variable: `a`
<anon>:5          let a; let b; (a, b) = (1, 2); b
                                 ^
<anon>:5:27: 5:28 error: use of possibly uninitialized variable: `b`
<anon>:5          let a; let b; (a, b) = (1, 2); b
                                    ^
error: aborting due to 2 previous errors
application terminated with error code 101

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