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>
8 LL | | Some(&mut self.0)
10 | |_____^ lifetime mismatch
12 = note: expected fn pointer `fn(&mut RepeatMut<'a, T>) -> std::option::Option<_>`
13 found fn pointer `fn(&'a mut RepeatMut<'a, T>) -> std::option::Option<_>`
14 note: the anonymous lifetime #1 defined on the method body at 6:5...
15 --> $DIR/issue-37884.rs:6:5
17 LL | / fn next(&'a mut self) -> Option<Self::Item>
21 LL | | Some(&mut self.0)
24 note: ...does not necessarily outlive the lifetime `'a` as defined on the impl at 3:6
25 --> $DIR/issue-37884.rs:3:6
27 LL | impl<'a, T: 'a> Iterator for RepeatMut<'a, T> {
30 error: aborting due to previous error
32 For more information about this error, try `rustc --explain E0308`.