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