Skip to content

Rustc failed to resolve trait bounds for trait implementation #44591

@weiznich

Description

@weiznich

While trying to do some magic with traits I've stumbled over the following issue:
Rustc is telling me that some trait bound is missing and suggest to add this bound. Now is the issue that exactly this bounds is already in the where clause.

More or less minimal self contained example

Workaround:
Replace every occurrence of Collection in the Factory trait with Vec<TypeA>, but this removes the freedom the add additional impl's of Factory using other collection types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions