Skip to content

Blanket impls aren't considered disjoint when bounded on traits with disjoint associated types #60886

@CAD97

Description

@CAD97

Playground Example

use std::borrow::ToOwned;

#[derive(Copy, Clone)]
struct S1;
#[derive(Copy, Clone)]
struct S2;
trait T {}

impl<R> T for R where R: ToOwned<Owned = S1> {}

impl<R> T for R where R: ToOwned<Owned = S2> {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions