about summary refs log tree commit diff
path: root/src/test/ui/generator
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-02-10 21:01:49 -0800
committerEsteban Küber <esteban@kuber.com.ar>2018-03-14 18:04:20 -0700
commit6d8a1739805fa81b6baa8c86efc3e79920ecb306 (patch)
tree8ca52590f0d3e738cc3d8ec277ab564653618e35 /src/test/ui/generator
parent883e74645d350b6752cb94d48f46363f6f8789e9 (diff)
Reword E0044 and message for `!Send` types
 - Reword E0044 help.
 - Change error message for types that don't implement `Send`
Diffstat (limited to 'src/test/ui/generator')
-rw-r--r--src/test/ui/generator/not-send-sync.rs4
-rw-r--r--src/test/ui/generator/not-send-sync.stderr4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/generator/not-send-sync.rs b/src/test/ui/generator/not-send-sync.rs
index 0419758d8ea..f0df05ebfdf 100644
--- a/src/test/ui/generator/not-send-sync.rs
+++ b/src/test/ui/generator/not-send-sync.rs
@@ -17,14 +17,14 @@ fn main() {
     fn assert_send<T: Send>(_: T) {}
 
     assert_sync(|| {
-        //~^ ERROR: Sync` is not satisfied
+        //~^ ERROR: E0277
         let a = Cell::new(2);
         yield;
     });
 
     let a = Cell::new(2);
     assert_send(|| {
-        //~^ ERROR: Sync` is not satisfied
+        //~^ ERROR: E0277
         drop(&a);
         yield;
     });
diff --git a/src/test/ui/generator/not-send-sync.stderr b/src/test/ui/generator/not-send-sync.stderr
index 6ca583bf16d..669e0d26cf0 100644
--- a/src/test/ui/generator/not-send-sync.stderr
+++ b/src/test/ui/generator/not-send-sync.stderr
@@ -1,4 +1,4 @@
-error[E0277]: the trait bound `std::cell::Cell<i32>: std::marker::Sync` is not satisfied
+error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely
   --> $DIR/not-send-sync.rs:26:5
    |
 LL |     assert_send(|| {
@@ -13,7 +13,7 @@ note: required by `main::assert_send`
 LL |     fn assert_send<T: Send>(_: T) {}
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-error[E0277]: the trait bound `std::cell::Cell<i32>: std::marker::Sync` is not satisfied in `[generator@$DIR/not-send-sync.rs:19:17: 23:6 {std::cell::Cell<i32>, ()}]`
+error[E0277]: `std::cell::Cell<i32>` cannot be shared between threads safely
   --> $DIR/not-send-sync.rs:19:5
    |
 LL |     assert_sync(|| {