1
Fork 0

Fix some fallout around type alias impl trait in associated types

This commit is contained in:
Oli Scherer 2022-04-01 17:22:23 +00:00
parent eca0ead17d
commit b30bcfae38

View file

@ -144,7 +144,7 @@ impl<'a, K, V> IntoIterator for &'a VecMap<K, V> {
} }
} }
impl<'a, K, V> IntoIterator for &'a mut VecMap<K, V> { impl<'a, K: 'a, V: 'a> IntoIterator for &'a mut VecMap<K, V> {
type Item = (&'a K, &'a mut V); type Item = (&'a K, &'a mut V);
type IntoIter = impl Iterator<Item = Self::Item>; type IntoIter = impl Iterator<Item = Self::Item>;