Skip to content

Autofix on mutating constant #1621

@DivergentClouds

Description

@DivergentClouds

Due to #1607 if you write something like var foo: usize = 0 and then you run autofix (my autofix runs on save) it will turn into const foo: usize = 0 and if you mutate it later by adding foo += 1 for example, you will get an error for attempting to assign to a constant.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions