rust/tests/ui/associated-item/associated-item-two-bounds.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
245 B
Rust
Raw Normal View History

2021-01-16 09:41:53 -06:00
// 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() {}