LL | fn assert_send<T:Send+'static>() { }
| ^^^^ required by this bound in `assert_send`
-error[E0477]: the type `&'a (dyn Dummy + Sync + 'a)` does not fulfill the required lifetime
- --> $DIR/kindck-send-object1.rs:14:5
- |
-LL | assert_send::<&'a (dyn Dummy + Sync)>();
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
-note: type must satisfy the static lifetime as required by this binding
- --> $DIR/kindck-send-object1.rs:5:23
- |
-LL | fn assert_send<T:Send+'static>() { }
- | ^^^^^^^
-
error[E0277]: `(dyn Dummy + 'a)` cannot be sent between threads safely
- --> $DIR/kindck-send-object1.rs:29:5
+ --> $DIR/kindck-send-object1.rs:28:5
|
LL | assert_send::<Box<dyn Dummy + 'a>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be sent between threads safely
LL | fn assert_send<T:Send+'static>() { }
| ^^^^ required by this bound in `assert_send`
-error: aborting due to 3 previous errors
+error: aborting due to 2 previous errors
-Some errors have detailed explanations: E0277, E0477.
-For more information about an error, try `rustc --explain E0277`.
+For more information about this error, try `rustc --explain E0277`.