|
| 1 | +error[E0106]: missing lifetime specifier |
| 2 | + --> $DIR/issue-74918-missing-lifetime.rs:9:31 |
| 3 | + | |
| 4 | +LL | type Item = IteratorChunk<T, S>; |
| 5 | + | ^ expected named lifetime parameter |
| 6 | + | |
| 7 | +help: consider introducing a named lifetime parameter |
| 8 | + | |
| 9 | +LL | type Item<'a> = IteratorChunk<<'a>T, S>; |
| 10 | + | ^^^^ ^^^^ |
| 11 | + |
| 12 | +error: `impl` item signature doesn't match `trait` item signature |
| 13 | + --> $DIR/issue-74918-missing-lifetime.rs:11:5 |
| 14 | + | |
| 15 | +LL | fn next(&mut self) -> Option<IteratorChunk<T, S>> { |
| 16 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(&mut ChunkingIterator<T, S>) -> std::option::Option<IteratorChunk<'_, T, S>>` |
| 17 | + | |
| 18 | + ::: $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL |
| 19 | + | |
| 20 | +LL | fn next(&mut self) -> Option<Self::Item>; |
| 21 | + | ----------------------------------------- expected `fn(&mut ChunkingIterator<T, S>) -> std::option::Option<IteratorChunk<'static, _, _>>` |
| 22 | + | |
| 23 | + = note: expected `fn(&mut ChunkingIterator<T, S>) -> std::option::Option<IteratorChunk<'static, _, _>>` |
| 24 | + found `fn(&mut ChunkingIterator<T, S>) -> std::option::Option<IteratorChunk<'_, _, _>>` |
| 25 | + = help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait` |
| 26 | + = help: verify the lifetime relationships in the `trait` and `impl` between the `self` argument, the other inputs and its output |
| 27 | + |
| 28 | +error: aborting due to 2 previous errors |
| 29 | + |
| 30 | +For more information about this error, try `rustc --explain E0106`. |
0 commit comments