Skip to content

impl Fn which returns an impl #19

Open
@Alphapage

Description

@Alphapage

Hello,

fn fun(p: impl Fn(i32)) {} compiles. But:
fn fun(p: impl Fn(i32) -> impl Fn(i32)){} doesn't.

Is it intentional ?

Thank you in advance for your answers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions