Skip to content

Type inference not working with impl Fn return value #8403

Closed
@lnicola

Description

@lnicola
fn match_literal() -> impl Fn(&str) -> () {
    |input| {}
}

Rider can tell that input: &str, but we can't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tytype system / type inference / traits / method resolutionS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions