Skip to content

cmd/vet: don't report "loop variable captured" error for versions >= go1.22 #63891

Closed as not planned
@griesemer

Description

@griesemer

The new loop variable semantics (#60078) is enabled for go1.22 so go vet shouldn't report an error for captured loop variables anymore.

The playground at tip shows the new loop variable semantics but still reports a vet error.

Related to #57063.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions