//! Check that lifetimes are inherited in RPIT. //! Previously, the hidden lifetime of T::Bar would be overlooked //! and would instead end up as >::Bar. //! //! Regression test for . //@ check-pass trait Foo<'a> { type Bar; } impl<'a> Foo<'a> for u32 { type Bar = &'a (); } fn baz<'a, T>() -> impl IntoIterator where T: Foo<'a>, { None } fn main() {}