//@ run-rustfix // Issue #109429 use std::collections::hash_map::DefaultHasher; use std::collections::HashMap; use std::hash::BuildHasher; use std::hash::Hash; #[derive(Clone)] pub struct Hash128_1; impl BuildHasher for Hash128_1 { type Hasher = DefaultHasher; fn build_hasher(&self) -> DefaultHasher { DefaultHasher::default() } } #[allow(unused)] pub fn hashmap_copy( map: &HashMap, ) where T: Hash + Clone, U: Clone { let mut copy: Vec = as Clone>::clone(&map).into_values().collect(); //~ ERROR } pub fn make_map() -> HashMap { HashMap::with_hasher(Hash128_1) } fn main() {}