fix a implicitly copyable warning

This commit is contained in:
Niko Matsakis 2012-09-10 16:37:20 -07:00
parent f2d9d0ba41
commit 2026359518
1 changed files with 1 additions and 1 deletions

View File

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