mirror of
https://git.proxmox.com/git/rustc
synced 2025-07-04 23:33:28 +00:00
17 lines
252 B
Rust
17 lines
252 B
Rust
#![feature(type_alias_impl_trait)]
|
|
|
|
pub trait TraitWithAssoc {
|
|
type Assoc;
|
|
}
|
|
|
|
pub type Foo<V> = impl Trait<V::Assoc>;
|
|
//~^ ERROR
|
|
|
|
pub trait Trait<U> {}
|
|
|
|
impl<W> Trait<W> for () {}
|
|
|
|
pub fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T> {
|
|
()
|
|
}
|