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