1 #![feature(type_alias_impl_trait)]
5 type Foo = impl std::fmt::Debug;
7 fn foo(b: bool) -> Foo {
11 let x: Vec<i32> = foo(false);
12 std::iter::empty().collect()
15 fn bar(b: bool) -> impl std::fmt::Debug {
19 let x: Vec<i32> = bar(false);
20 std::iter::empty().collect()