1 #![feature(type_alias_impl_trait)]
3 type Foo = impl std::ops::FnOnce(String) -> usize;
5 fn foo(b: bool) -> Foo {
7 |x| x.len() //~ ERROR type annotations needed
14 type Foo1 = impl std::ops::FnOnce(String) -> usize;
15 fn foo1(b: bool) -> Foo1 {
19 fn bar(b: bool) -> impl std::ops::FnOnce(String) -> usize {
21 |x| x.len() //~ ERROR type annotations needed
27 fn bar1(b: bool) -> impl std::ops::FnOnce(String) -> usize {