1 error[E0277]: `(dyn Dummy + 'static)` cannot be shared between threads safely
2 --> $DIR/kindck-send-object.rs:22:5
4 LL | assert_send::<&'static (Dummy+'static)>();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'static)` cannot be shared between threads safely
7 = help: the trait `std::marker::Sync` is not implemented for `(dyn Dummy + 'static)`
8 = note: required because of the requirements on the impl of `std::marker::Send` for `&'static (dyn Dummy + 'static)`
9 note: required by `assert_send`
10 --> $DIR/kindck-send-object.rs:15:1
12 LL | fn assert_send<T:Send>() { }
13 | ^^^^^^^^^^^^^^^^^^^^^^^^
15 error[E0277]: `dyn Dummy` cannot be sent between threads safely
16 --> $DIR/kindck-send-object.rs:27:5
18 LL | assert_send::<Box<Dummy>>();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^ `dyn Dummy` cannot be sent between threads safely
21 = help: the trait `std::marker::Send` is not implemented for `dyn Dummy`
22 = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<dyn Dummy>`
23 = note: required because it appears within the type `std::boxed::Box<dyn Dummy>`
24 note: required by `assert_send`
25 --> $DIR/kindck-send-object.rs:15:1
27 LL | fn assert_send<T:Send>() { }
28 | ^^^^^^^^^^^^^^^^^^^^^^^^
30 error: aborting due to 2 previous errors
32 For more information about this error, try `rustc --explain E0277`.