6 fn iter_values_anon(&self) -> impl Iterator<Item=u32> {
7 self.x.iter().map(|a| a.0)
8 //~^ ERROR: captures lifetime that does not appear in bounds
9 //~| ERROR: captures lifetime that does not appear in bounds
11 fn iter_values<'a>(&'a self) -> impl Iterator<Item=u32> {
12 self.x.iter().map(|a| a.0)
13 //~^ ERROR: captures lifetime that does not appear in bounds
14 //~| ERROR: captures lifetime that does not appear in bounds