Update library/core/tests/future.rs

Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
This commit is contained in:
Josh Triplett 2021-12-10 05:07:52 -08:00 committed by GitHub
parent f8dc13db43
commit 67ab53daee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]