about summary refs log tree commit diff
path: root/src/test/compile-fail/kindck-send-object.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-11-20 15:08:02 -0500
committerNiko Matsakis <niko@alum.mit.edu>2014-11-26 11:42:06 -0500
commitf4e29e7e9aa1da4fc91a6074b0e4df44a2986517 (patch)
tree0da944aff45bf45cd6e085b92aa78110d62cfb20 /src/test/compile-fail/kindck-send-object.rs
parent74a1041a4d7ae08d223f5ec623f6a698962d5667 (diff)
downloadrust-f4e29e7e9aa1da4fc91a6074b0e4df44a2986517.tar.gz
rust-f4e29e7e9aa1da4fc91a6074b0e4df44a2986517.zip
Fixup various places that were doing `&T+'a` and do `&(T+'a)`
Diffstat (limited to 'src/test/compile-fail/kindck-send-object.rs')
-rw-r--r--src/test/compile-fail/kindck-send-object.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/kindck-send-object.rs b/src/test/compile-fail/kindck-send-object.rs
index 9217d05002d..4fbb3eab8c4 100644
--- a/src/test/compile-fail/kindck-send-object.rs
+++ b/src/test/compile-fail/kindck-send-object.rs
@@ -19,7 +19,7 @@ trait Message : Send { }
 // careful with object types, who knows what they close over...
 
 fn object_ref_with_static_bound_not_ok() {
-    assert_send::<&'static Dummy+'static>();
+    assert_send::<&'static (Dummy+'static)>();
     //~^ ERROR the trait `core::kinds::Send` is not implemented
 }
 
@@ -36,7 +36,7 @@ fn closure_with_no_bound_not_ok<'a>() {
 }
 
 fn object_with_send_bound_ok() {
-    assert_send::<&'static Dummy+Send>();
+    assert_send::<&'static (Dummy+Send)>();
     assert_send::<Box<Dummy+Send>>();
     assert_send::<proc():Send>;
     assert_send::<||:Send>;