]> git.lizzy.rs Git - rust.git/commitdiff
Only run test with default hasher
authorAaron Hill <aa1ronham@gmail.com>
Tue, 9 Apr 2019 01:42:12 +0000 (21:42 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Tue, 9 Apr 2019 01:42:12 +0000 (21:42 -0400)
tests/run-pass/hashmap.rs

index a663c9659524cea676193fcf881bfb1d7ef9cf97..94add0078f7c390a8511654aa0885589e5414723 100644 (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);
 }