Make moves explicit in std tests
This commit is contained in:
parent
30a62793fa
commit
90d06b80fd
11 changed files with 98 additions and 96 deletions
|
@ -57,7 +57,7 @@ fn test_basic() {
|
|||
let value = value_cell.take();
|
||||
assert value == ~10;
|
||||
assert value_cell.is_empty();
|
||||
value_cell.put_back(value);
|
||||
value_cell.put_back(move value);
|
||||
assert !value_cell.is_empty();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue