blob: 3480942d9d282ded1dbc77daae4b6735780b51be [file] [log] [blame]
//@ dont-require-annotations: NOTE
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
//~| NOTE lifetime mismatch
{
Some(&mut self.0)
}
}
fn main() {}