blob: ee37481b23f72ec167eb690c6a69d6437389dcf8 [file] [log] [blame]
struct RepeatMut<'a, T>(T, &'a ());
impl<'a, T: 'a> Iterator for RepeatMut<'a, T> {
type Item = &'a mut T;
fn next(&'a mut self) -> Option<Self::Item>
//~^ ERROR method not compatible with trait
//~| lifetime mismatch
{
Some(&mut self.0)
}
}
fn main() {}