Skip to content

could type inference fill in the _ in expr as Box<_> when expecting Box<Trait> ? #22221

Closed
@pnkfelix

Description

@pnkfelix

Could type inference fill in expr as Box<_> when expecting Box<Trait> ?

From what I have seen, it seems to make no attempt to use the surrounding context to fill in gaps like the _ in Box<_> above.

spawned from #22086

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions