Skip to content

Misleading error message on use of FnOnce<(T, U), Output=V> #26970

Closed
@llogiq

Description

@llogiq

This stack overflow question shows that if one tries to declare a FnOnce<(T, U), Output=V> (which should be a FnOnce(T, U) -> V), the error message is quite misleading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-closuresArea: Closures (`|…| { … }`)A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions