about summary refs log tree commit diff
path: root/src/liballoc/tests/arc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/liballoc/tests/arc.rs')
-rw-r--r--src/liballoc/tests/arc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/tests/arc.rs b/src/liballoc/tests/arc.rs
index 2fbb59b0419..34384cfcba9 100644
--- a/src/liballoc/tests/arc.rs
+++ b/src/liballoc/tests/arc.rs
@@ -142,7 +142,7 @@ fn shared_from_iter_trustedlen_normal() {
 
     // Try a ZST to make sure it is handled well.
     {
-        let iter = (0..SHARED_ITER_MAX).map(|_| ());
+        let iter = (0..SHARED_ITER_MAX).map(drop);
         let vec = iter.clone().collect::<Vec<_>>();
         let rc = iter.collect::<Rc<[_]>>();
         assert_eq!(&*vec, &*rc);