1 #![feature(type_alias_impl_trait)]
3 pub trait Captures<'a> {}
5 impl<'a, T: ?Sized> Captures<'a> for T {}
7 type Foo<'a, 'b> = impl std::fmt::Debug + Captures<'a> + Captures<'b>;
9 fn foo<'x, 'y>(i: &'x i32, j: &'y i32) -> (Foo<'x, 'y>, Foo<'y, 'x>) {
10 (i, i) //~ ERROR concrete type differs from previous