Skip to content

Variables that are only used for swapping are marked as unused #1832

Closed
@marijnh

Description

@marijnh

This causes a warning that x is unused:

fn main() {
   let x = 10, y = 20;
   x <-> y;
   log(error, y);
}

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