Skip to content

Commit

Permalink
Update library/core/tests/future.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
  • Loading branch information
joshtriplett and danielhenrymantilla authored Dec 10, 2021
1 parent f8dc13d commit 67ab53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/tests/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 67ab53d

Please sign in to comment.