Fix suggestion to use lifetime in type

This commit is contained in:
Esteban Küber 2020-08-10 12:30:31 -07:00
parent 4b9ac51617
commit 0f7205f202
2 changed files with 9 additions and 3 deletions

View file

@ -6,8 +6,8 @@ LL | type Item = IteratorChunk<T, S>;
|
help: consider introducing a named lifetime parameter
|
LL | type Item<'a> = IteratorChunk<<'a>T, S>;
| ^^^^ ^^^^
LL | type Item<'a> = IteratorChunk<'a, T, S>;
| ^^^^ ^^^
error: `impl` item signature doesn't match `trait` item signature
--> $DIR/issue-74918-missing-lifetime.rs:11:5