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