1 #![feature(type_alias_impl_trait)]
4 pub trait Captures<'a> {}
6 impl<'a, T: ?Sized> Captures<'a> for T {}
8 type OneLifetime<'a, 'b> = impl std::fmt::Debug + Captures<'a> + Captures<'b>;
10 fn foo<'a, 'b>(a: &'a u32, b: &'b u32) -> OneLifetime<'a, 'b> {
14 fn bar<'a, 'b>(a: &'a u32, b: &'b u32) -> OneLifetime<'a, 'b> {
16 //~^ ERROR: concrete type differs from previous defining opaque type use