2019-01-27 05:03:21 -06:00
|
|
|
error[E0277]: `(dyn Dummy + 'a)` cannot be shared between threads safely
|
2022-08-16 01:27:22 -05:00
|
|
|
--> $DIR/kindck-send-object1.rs:10:19
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | assert_send::<&'a dyn Dummy>();
|
2022-08-16 01:27:22 -05:00
|
|
|
| ^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be shared between threads safely
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Sync` is not implemented for `(dyn Dummy + 'a)`
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `&'a (dyn Dummy + 'a)` to implement `Send`
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `assert_send`
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/kindck-send-object1.rs:5:18
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
LL | fn assert_send<T:Send+'static>() { }
|
|
|
|
| ^^^^ required by this bound in `assert_send`
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
error[E0277]: `(dyn Dummy + 'a)` cannot be sent between threads safely
|
2022-08-16 01:27:22 -05:00
|
|
|
--> $DIR/kindck-send-object1.rs:28:19
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | assert_send::<Box<dyn Dummy + 'a>>();
|
2022-08-16 01:27:22 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be sent between threads safely
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Send` is not implemented for `(dyn Dummy + 'a)`
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `Unique<(dyn Dummy + 'a)>` to implement `Send`
|
2023-01-05 19:11:50 -06:00
|
|
|
= note: required because it appears within the type `Box<dyn Dummy>`
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `assert_send`
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/kindck-send-object1.rs:5:18
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
LL | fn assert_send<T:Send+'static>() { }
|
|
|
|
| ^^^^ required by this bound in `assert_send`
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|