1 error[E0277]: `(dyn Dummy + 'a)` cannot be shared between threads safely
2 --> $DIR/kindck-send-object1.rs:10:5
4 LL | assert_send::<&'a dyn Dummy>();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be shared between threads safely
7 = help: the trait `Sync` is not implemented for `(dyn Dummy + 'a)`
8 = note: required because of the requirements on the impl of `Send` for `&'a (dyn Dummy + 'a)`
9 note: required by a bound in `assert_send`
10 --> $DIR/kindck-send-object1.rs:5:18
12 LL | fn assert_send<T:Send+'static>() { }
13 | ^^^^ required by this bound in `assert_send`
15 error[E0477]: the type `&'a (dyn Dummy + Sync + 'a)` does not fulfill the required lifetime
16 --> $DIR/kindck-send-object1.rs:14:5
18 LL | assert_send::<&'a (dyn Dummy + Sync)>();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 note: type must satisfy the static lifetime as required by this binding
22 --> $DIR/kindck-send-object1.rs:5:23
24 LL | fn assert_send<T:Send+'static>() { }
27 error[E0277]: `(dyn Dummy + 'a)` cannot be sent between threads safely
28 --> $DIR/kindck-send-object1.rs:29:5
30 LL | assert_send::<Box<dyn Dummy + 'a>>();
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be sent between threads safely
33 = help: the trait `Send` is not implemented for `(dyn Dummy + 'a)`
34 = note: required because of the requirements on the impl of `Send` for `Unique<(dyn Dummy + 'a)>`
35 = note: required because it appears within the type `Box<(dyn Dummy + 'a)>`
36 note: required by a bound in `assert_send`
37 --> $DIR/kindck-send-object1.rs:5:18
39 LL | fn assert_send<T:Send+'static>() { }
40 | ^^^^ required by this bound in `assert_send`
42 error: aborting due to 3 previous errors
44 Some errors have detailed explanations: E0277, E0477.
45 For more information about an error, try `rustc --explain E0277`.