Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
associated-item
/
ambiguous-associated-type-with-generics.rs
blob: ecc7c657ee0be31815b011aba6dc175bc7da004a [
file
] [
log
] [
blame
]
//@ run-rustfix
trait
Trait
<
A
>
{}
trait
Assoc
{
type
Ty
;
}
impl
<
A
>
Assoc
for
dyn
Trait
<
A
>
{
type
Ty
=
i32
;
}
fn
main
()
{
let
_x
:
<
dyn
Trait
<
i32
>>::
Ty
;
//~ ERROR ambiguous associated type
}