Add test for #34792

This commit is contained in:
Dániel Buga 2021-01-16 16:41:53 +01:00
parent 410a546fc5
commit bdc7ff7996
1 changed files with 16 additions and 0 deletions

View File

@ -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() {}