Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

col_a == col_b and col_a == scalar should work #70

Open
japaric opened this issue May 9, 2015 · 0 comments
Open

col_a == col_b and col_a == scalar should work #70

japaric opened this issue May 9, 2015 · 0 comments

Comments

@japaric
Copy link
Contributor

japaric commented May 9, 2015

This can't be done right now because I get a "conflicting implementations" error:

impl<'a, 'b, A, B> PartialEq<Col<'a, A>> for Col<'b, B> where B: PartialEq<B> {
    ..
}

impl<'b, A, B> PartialEq<A> for Col<'b, B> where B: PartialEq<B> {
    ..
}

(A could be Col<'_, _>)

This can be solved with unsized types:

// Col is unsized

impl<A, B> PartialEq<Col<A>> for Col<B> where B: PartialEq<B> {
    ..
}

impl<A: Sized, B> PartialEq<A> for Col<B> where B: PartialEq<B> {
    ..
}

Blocked on user defined unsized types

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant