]> git.lizzy.rs Git - rust.git/commitdiff
Update library/core/tests/future.rs
authorJosh Triplett <josh@joshtriplett.org>
Fri, 10 Dec 2021 13:07:52 +0000 (05:07 -0800)
committerGitHub <noreply@github.com>
Fri, 10 Dec 2021 13:07:52 +0000 (05:07 -0800)
Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
library/core/tests/future.rs

index 8f4a991ed2d23024ba60bae5a8d70c415369227c..e8b83b5cbc21ebc146a826ca137784aeb60dd6c1 100644 (file)
@@ -78,7 +78,7 @@ async fn async_fn(_: impl Sized) {}
     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]