about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/tests/future.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/tests/future.rs b/library/core/tests/future.rs
index 8f4a991ed2d..e8b83b5cbc2 100644
--- a/library/core/tests/future.rs
+++ b/library/core/tests/future.rs
@@ -78,7 +78,7 @@ mod test_join_function_like_value_arg_semantics {
     fn _join_does_not_unnecessarily_move_mentioned_bindings() {
         let not_copy = vec![()];
         let _ = join!(async_fn(&not_copy)); // should not move `not_copy`
-        let _ = not_copy; // OK
+        let _ = &not_copy; // OK
     }
 
     #[test]