2017-12-10 13:47:55 -06:00
|
|
|
error[E0308]: method not compatible with trait
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37884.rs:6:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2022-07-04 03:23:24 -05:00
|
|
|
LL | fn next(&'a mut self) -> Option<Self::Item>
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2022-12-24 17:17:25 -06:00
|
|
|
= note: expected signature `fn(&mut RepeatMut<'a, T>) -> Option<_>`
|
|
|
|
found signature `fn(&'a mut RepeatMut<'a, T>) -> Option<_>`
|
2022-06-19 15:57:05 -05:00
|
|
|
note: the anonymous lifetime as defined here...
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37884.rs:6:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2020-08-12 16:02:14 -05:00
|
|
|
LL | fn next(&'a mut self) -> Option<Self::Item>
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-10-05 07:11:51 -05:00
|
|
|
note: ...does not necessarily outlive the lifetime `'a` as defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-37884.rs:3:6
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<'a, T: 'a> Iterator for RepeatMut<'a, T> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|