about summary refs log tree commit diff
path: root/library/coretests/tests/array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/coretests/tests/array.rs')
-rw-r--r--library/coretests/tests/array.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/coretests/tests/array.rs b/library/coretests/tests/array.rs
index b6d18f1ec38..30ccbbc3203 100644
--- a/library/coretests/tests/array.rs
+++ b/library/coretests/tests/array.rs
@@ -325,7 +325,7 @@ fn array_map_drop_safety() {
     let success = std::panic::catch_unwind(|| {
         let items = [0; 10];
         let mut nth = 0;
-        items.map(|_| {
+        let _ = items.map(|_| {
             assert!(nth < num_to_create);
             nth += 1;
             DropCounter