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