Only run test with default hasher

This commit is contained in:
Aaron Hill 2019-04-08 21:42:12 -04:00
parent 6b0440e26d
commit b120e8bb88
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -27,9 +27,8 @@ fn test_map<S: BuildHasher>(mut map: HashMap<i32, i32, S>) {
}
fn main() {
let map : HashMap<i32, i32, BuildHasherDefault<collections::hash_map::DefaultHasher>> = Default::default();
let _map : HashMap<i32, i32, BuildHasherDefault<collections::hash_map::DefaultHasher>> = Default::default();
let map_normal: HashMap<i32, i32> = HashMap::new();
test_map(map);
test_map(map_normal);
}