Skip to content

Trait bound claims missing requirements despite those bounds being implied by the trait #86635

Open
@CraftSpider

Description

@CraftSpider

I tried this code: Playground Link

I expected to see this happen: Only one error: Foo cannot be implemented for Bar, the function should compile.

Instead, this happened: The function complains about missing bounds, despite the fact that those bounds should be implicit by the requirements of the trait.

Zulip Discussion: Zulip

Meta

Using 1.53.0 on the playground, bug still present on latest nightly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-trait-systemArea: Trait systemC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types 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