Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
associated-types
/
issue-44153.rs
blob: 2101cb61a94d1fbfccce160d7f6dc979d61a78fc [
file
] [
log
] [
blame
]
pub
trait
Array
{
type
Element
;
}
pub
trait
Visit
{
fn
visit
()
{}
}
impl
Array
for
()
{
type
Element
=
();
}
impl
<
'
a
>
Visit
for
()
where
():
Array
<
Element
=&
'
a
()>,
{}
fn
main
()
{
<()
as
Visit
>::
visit
();
//~ ERROR: type mismatch resolving
}