Skip to content

Commit a6b2e1f

Browse files
authored
Rollup merge of #81081 - bugadani:double-partialeq, r=Mark-Simulacrum
Add test for #34792 Closes #34792
2 parents dd86fc6 + bdc7ff7 commit a6b2e1f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// This test is a regression test for #34792
2+
3+
// check-pass
4+
5+
pub struct A;
6+
pub struct B;
7+
8+
pub trait Foo {
9+
type T: PartialEq<A> + PartialEq<B>;
10+
}
11+
12+
pub fn generic<F: Foo>(t: F::T, a: A, b: B) -> bool {
13+
t == a && t == b
14+
}
15+
16+
pub fn main() {}

0 commit comments

Comments
 (0)