blob: 2da15ac5b6e7e24239eff34999792c97135d26c6 [file] [log] [blame]
// compile-pass
use std::iter::once;
struct Foo {
x: i32,
}
impl Foo {
fn inside(&self) -> impl Iterator<Item = &i32> {
once(&self.x)
}
}
fn main() {
println!("hi");
}