Skip to content

Commit

Permalink
Add test for #34792
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Jan 16, 2021
1 parent 410a546 commit bdc7ff7
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 bdc7ff7

Please sign in to comment.