]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/bound_reduction2.rs
Merge pull request #16 from ian-h-chamberlain/feature/target-thread-local
[rust.git] / src / test / ui / type-alias-impl-trait / bound_reduction2.rs
1 #![feature(type_alias_impl_trait)]
2
3 fn main() {}
4
5 trait TraitWithAssoc {
6     type Assoc;
7 }
8
9 type Foo<V> = impl Trait<V>;
10 //~^ ERROR could not find defining uses
11
12 trait Trait<U> {}
13
14 impl<W> Trait<W> for () {}
15
16 fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> {
17     //~^ ERROR non-defining opaque type use in defining scope
18     ()
19 }