]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/not_well_formed.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / type-alias-impl-trait / not_well_formed.rs
CommitLineData
6a06907d
XL
1// revisions: min_tait full_tait
2#![feature(min_type_alias_impl_trait)]
3#![cfg_attr(full_tait, feature(type_alias_impl_trait))]
4//[full_tait]~^ WARN incomplete
0531ce1d 5
a7813a04 6fn main() {
8faf50e0
XL
7}
8
9trait TraitWithAssoc {
10 type Assoc;
11}
12
416331ca 13type Foo<V> = impl Trait<V::Assoc>; //~ associated type `Assoc` not found for `V`
8faf50e0
XL
14
15trait Trait<U> {}
0531ce1d 16
8faf50e0 17impl<W> Trait<W> for () {}
0531ce1d 18
8faf50e0
XL
19fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T> {
20 ()
54a0048b 21}