Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
associated-item
/
associated-item-two-bounds.rs
blob: 25b0d5a56bfb3e49a836f73930f4c61d5f370ea8 [
file
] [
log
] [
blame
]
// 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
()
{}