// This test is a regression test for #34792 //@ check-pass pub struct A; pub struct B; pub trait Foo { type T: PartialEq + PartialEq; } pub fn generic(t: F::T, a: A, b: B) -> bool { t == a && t == b } pub fn main() {}