Skip to content

Commit e1ccdad

Browse files
aliemjaylcnr
authored andcommitted
borrowck: wf-check fn item args
1 parent cebd2c1 commit e1ccdad

File tree

1 file changed

+3
-2
lines changed
  • std/src/collections/hash

1 file changed

+3
-2
lines changed

std/src/collections/hash/map.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -3049,8 +3049,9 @@ where
30493049
#[stable(feature = "hash_extend_copy", since = "1.4.0")]
30503050
impl<'a, K, V, S> Extend<(&'a K, &'a V)> for HashMap<K, V, S>
30513051
where
3052-
K: Eq + Hash + Copy,
3053-
V: Copy,
3052+
// FIXME(aliemjay): the bound `+ 'a` should not be necessary.
3053+
K: Eq + Hash + Copy + 'a,
3054+
V: Copy + 'a,
30543055
S: BuildHasher,
30553056
{
30563057
#[inline]

0 commit comments

Comments
 (0)