Skip to content

Immovable generator syntax (static ||) not recognized #11448

@vorot93

Description

@vorot93
#![feature(generators)]

fn main() {
    let gen = static || {
        yield 123;
    };
}
Syntax Error: expected expression
Syntax Error: expected SEMICOLON

rust-analyzer version: 08348d7 2022-02-10 nightly

rustc version: rustc 1.60.0-nightly (0c292c9 2022-02-08)

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