diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-09-12 10:45:39 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-09-15 14:58:49 -0400 |
| commit | b88f86782ecd9319e0e2c875bbf1efecd66ebf41 (patch) | |
| tree | 2dab9ba700a8a309e59b2835cabd6a80390618ec /src/test/compile-fail/kindck-send-object.rs | |
| parent | a8d478db512803d25785a11c5b21634f8703b17f (diff) | |
| download | rust-b88f86782ecd9319e0e2c875bbf1efecd66ebf41.tar.gz rust-b88f86782ecd9319e0e2c875bbf1efecd66ebf41.zip | |
Update error messages in compile-fail tests
Diffstat (limited to 'src/test/compile-fail/kindck-send-object.rs')
| -rw-r--r-- | src/test/compile-fail/kindck-send-object.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/compile-fail/kindck-send-object.rs b/src/test/compile-fail/kindck-send-object.rs index 99519263923..9217d05002d 100644 --- a/src/test/compile-fail/kindck-send-object.rs +++ b/src/test/compile-fail/kindck-send-object.rs @@ -19,19 +19,20 @@ 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>(); //~ ERROR does not fulfill + assert_send::<&'static Dummy+'static>(); + //~^ ERROR the trait `core::kinds::Send` is not implemented } fn box_object_with_no_bound_not_ok<'a>() { - assert_send::<Box<Dummy>>(); //~ ERROR does not fulfill + assert_send::<Box<Dummy>>(); //~ ERROR the trait `core::kinds::Send` is not implemented } fn proc_with_no_bound_not_ok<'a>() { - assert_send::<proc()>(); //~ ERROR does not fulfill + assert_send::<proc()>(); //~ ERROR the trait `core::kinds::Send` is not implemented } fn closure_with_no_bound_not_ok<'a>() { - assert_send::<||:'static>(); //~ ERROR does not fulfill + assert_send::<||:'static>(); //~ ERROR the trait `core::kinds::Send` is not implemented } fn object_with_send_bound_ok() { |
