Skip to content

Support gen syntax (feature gen_blocks) #16156

Open
@mohe2015

Description

@mohe2015

Hi, it would be nice if the following would parse and show types correctly.

#![feature(gen_blocks)]

pub async gen fn html() {
    let _ = async gen { yield (); };
    yield ();
}

It looks like there already is support for coroutines

#![feature(coroutines)]

pub fn html() {
    let test = || { yield (); };
}

so maybe this is not too hard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserparser issuesC-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions