about summary refs log tree commit diff
path: root/library/coretests/tests/array.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-05-18 06:35:03 +0000
committerGitHub <noreply@github.com>2025-05-18 06:35:03 +0000
commit0abf62f692d6e963a3c8cfdc402586a2be7bac51 (patch)
tree866dc9b5d510f157c9c3814de5ff426133d828be /library/coretests/tests/array.rs
parent0a28db2d5b79f71f0f1b4a05dfb2363da03e268e (diff)
parent48093fd6959835408dc15d878ad7ae0d9c469a42 (diff)
Merge pull request #4327 from rust-lang/rustup-2025-05-18
Automatic Rustup
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