Skip to content

Resolving the diamond problem #67805

@hameerabbasi

Description

@hameerabbasi

Related to #31844.

As noted by Discord user pie_flavor#7868, we see an error about the diamond problem: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=f7b45b0efa1007a421a93aa386c6afd4

The issue is that we can't pick if we want the implementation from A or B (or our own) if this happens by doing default impl<T> C for T where T: A + B {}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions