Skip to content

Incorrect this trait takes 1 generic argument but 0 generic arguments were supplied #19669

Closed
@Veykril

Description

@Veykril

In

    let _: Option<i32> = Some(0).map(Into::into);

rust-analyzer complains about the lacking generic argument for Into even though that is inferred

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsdiagnostics / error reportingBroken WindowBugs / technical debt to be addressed immediatelyC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions