// check-pass use std::iter::once; struct Foo { x: i32, } impl Foo { fn inside(&self) -> impl Iterator { once(&self.x) } } fn main() { println!("hi"); }