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