1 error[E0308]: method not compatible with trait
2 --> $DIR/issue-37884.rs:6:5
4 LL | fn next(&'a mut self) -> Option<Self::Item>
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
7 = note: expected fn pointer `fn(&mut RepeatMut<'a, T>) -> Option<_>`
8 found fn pointer `fn(&'a mut RepeatMut<'a, T>) -> Option<_>`
9 note: the anonymous lifetime as defined here...
10 --> $DIR/issue-37884.rs:6:5
12 LL | fn next(&'a mut self) -> Option<Self::Item>
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 note: ...does not necessarily outlive the lifetime `'a` as defined here
15 --> $DIR/issue-37884.rs:3:6
17 LL | impl<'a, T: 'a> Iterator for RepeatMut<'a, T> {
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0308`.