fn main() {} fn foo(_src: &crate::Foo) -> Option { todo!() } fn bar(src: &crate::Foo) -> impl Iterator { [0].into_iter() //~^ ERROR hidden type for `impl Iterator` captures lifetime that does not appear in bounds .filter_map(|_| foo(src)) } struct Foo<'a>(&'a str);