Skip to content

Wrong "cannot mutate immutable variable array (E0384)" #15670

Closed
@xxshady

Description

@xxshady

rust-analyzer version: 0.4.1674-standalone (d3cc3bc 2023-09-25)

rustc version: 1.72.0 (5680fa18f 2023-08-23)

rust-analyzer complains about "immutable variable", but rustc compiles this code without issues

However this doesnt cause any issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsdiagnostics / error reportingC-bugCategory: bugS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions