Open
Description
Niko Matsakis points out that the explicit_outlives_requirements lint (from #53013, expected to land soon) should also fire on lifetime-outlives bounds and associated-type-outlives bounds, as illustrated by the following two examples:
struct Foo<'a, 'b: 'a> {
x: &'a &'b u32
}
struct Bar<'a, T: Iterator> where T::Item: 'a {
item: &'a T::Item,
}