2 #![feature(type_alias_impl_trait)]
4 type X<A: ToString + Clone, B: ToString + Clone> = impl ToString;
6 fn f<A: ToString + Clone, B: ToString + Clone>(a: A, b: B) -> (X<A, B>, X<A, B>) {
10 type Foo<'a, 'b> = impl std::fmt::Debug;
12 fn foo<'x, 'y>(i: &'x i32, j: &'y i32) -> (Foo<'x, 'y>, Foo<'y, 'x>) {
17 println!("{}", <X<_, _> as ToString>::to_string(&f(42_i32, String::new()).1));
20 println!("{:?}", foo(&meh, &muh));