Skip to content

Commit 2026359

Browse files
committed
fix a implicitly copyable warning
1 parent f2d9d0b commit 2026359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/future.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ mod test {
247247
#[test]
248248
fn test_sendable_future() {
249249
let expected = ~"schlorf";
250-
let f = do spawn |copy expected| { expected };
250+
let f = do spawn |copy expected| { copy expected };
251251
do task::spawn {
252252
let actual = get(&f);
253253
assert actual == expected;

0 commit comments

Comments
 (0)