fix a implicitly copyable warning
This commit is contained in:
parent
f2d9d0ba41
commit
2026359518
|
@ -247,7 +247,7 @@ mod test {
|
|||
#[test]
|
||||
fn test_sendable_future() {
|
||||
let expected = ~"schlorf";
|
||||
let f = do spawn |copy expected| { expected };
|
||||
let f = do spawn |copy expected| { copy expected };
|
||||
do task::spawn {
|
||||
let actual = get(&f);
|
||||
assert actual == expected;
|
||||
|
|
Loading…
Reference in New Issue