Skip to content

Commit

Permalink
Rollup merge of #81081 - bugadani:double-partialeq, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Add test for #34792

Closes #34792
  • Loading branch information
m-ou-se authored Jan 16, 2021
2 parents dd86fc6 + bdc7ff7 commit a6b2e1f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/ui/associated-item/associated-item-two-bounds.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This test is a regression test for #34792

// check-pass

pub struct A;
pub struct B;

pub trait Foo {
type T: PartialEq<A> + PartialEq<B>;
}

pub fn generic<F: Foo>(t: F::T, a: A, b: B) -> bool {
t == a && t == b
}

pub fn main() {}

0 comments on commit a6b2e1f

Please sign in to comment.