Skip to content

Add a special case error for [Range<T>; 1] #23141

Closed
@reem

Description

@reem

[Range<T>; 1] is usually a mistake and often the source of type errors where Range<T> was meant, since you get it with [a..b], which is tempting from the syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions