Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
CAD97 opened this issue May 16, 2019 · 1 comment

Comments

@CAD97
Copy link
Contributor

CAD97 commented May 16, 2019

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> {}
@jonas-schievink
Copy link
Contributor

Duplicate of #20400

@jonas-schievink jonas-schievink marked this as a duplicate of #20400 May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants