summary refs log tree commit diff
path: root/src/test/stdtest/task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/stdtest/task.rs')
-rw-r--r--src/test/stdtest/task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/stdtest/task.rs b/src/test/stdtest/task.rs
index 7945aaed744..d1408d183d5 100644
--- a/src/test/stdtest/task.rs
+++ b/src/test/stdtest/task.rs
@@ -53,7 +53,7 @@ fn test_join_chan_fail() {
 
 #[test]
 fn spawn_polymorphic() {
-    fn foo<send T>(x: T) { log(error, x); }
+    fn foo<T:send>(x: T) { log(error, x); }
     task::spawn {|| foo(true);};
     task::spawn {|| foo(42);};
 }