2021-01-16 16:41:53 +01:00
|
|
|
// This test is a regression test for #34792
|
|
|
|
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2021-01-16 16:41:53 +01:00
|
|
|
|
|
|
|
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() {}
|