Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
rustdoc-ui
/
issues
/
issue-96287.rs
blob: b490c2fc03f8646697e39fdccaae121c9fec74bd [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
type_alias_impl_trait
)]
pub
trait
TraitWithAssoc
{
type
Assoc
;
}
pub
type
Foo
<
V
>
=
impl
Trait
<
V
::
Assoc
>;
//~^ ERROR
//~| ERROR
pub
trait
Trait
<
U
>
{}
impl
<
W
>
Trait
<
W
>
for
()
{}
pub
fn
foo_desugared
<
T
:
TraitWithAssoc
>(
_
:
T
)
->
Foo
<
T
>
{
()
}