Skip to content

Identifiers in range notation are not parsed correctly #20830

@milibopp

Description

@milibopp

The following example fails to compile currently:

let a = 3;
for i in 0..a {
    let b = i;
}

with

<anon>:4:9: 4:12 error: expected identifier, found keyword `let`
<anon>:4         let b = i;
                 ^~~
<anon>:4:13: 4:14 error: expected `:`, found `b`
<anon>:4         let b = i;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions