Skip to content

Commit

Permalink
Fix some fallout around type alias impl trait in associated types
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 6, 2022
1 parent eca0ead commit b30bcfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_data_structures/src/vec_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 IntoIter = impl Iterator<Item = Self::Item>;

Expand Down

0 comments on commit b30bcfa

Please sign in to comment.