blob: 348f75b2fb6d8966deb0a693cf0f780be8dc66e4 [file] [log] [blame]
//@ check-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");
}