1 #![feature(type_alias_impl_trait)]
5 pub trait Captures<'a> {}
7 impl<'a, T: ?Sized> Captures<'a> for T {}
9 type Two<'a, 'b> = impl std::fmt::Debug + Captures<'a> + Captures<'b>;
11 fn one<'a>(t: &'a ()) -> Two<'a, 'a> {
13 //~^ ERROR non-defining opaque type use