2019-01-27 11:03:21 +00:00
|
|
|
error[E0277]: `(dyn Dummy + 'a)` cannot be shared between threads safely
|
2022-08-16 06:27:22 +00:00
|
|
|
--> $DIR/kindck-send-object1.rs:10:19
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | assert_send::<&'a dyn Dummy>();
|
2022-08-16 06:27:22 +00:00
|
|
|
| ^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be shared between threads safely
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Sync` is not implemented for `(dyn Dummy + 'a)`
|
2022-08-15 20:31:37 +00:00
|
|
|
= note: required for `&'a (dyn Dummy + 'a)` to implement `Send`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `assert_send`
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/kindck-send-object1.rs:5:18
|
2021-07-31 16:26:55 +00: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-08-16 06:27:22 +00:00
|
|
|
--> $DIR/kindck-send-object1.rs:28:19
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | assert_send::<Box<dyn Dummy + 'a>>();
|
2022-08-16 06:27:22 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ `(dyn Dummy + 'a)` cannot be sent between threads safely
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Send` is not implemented for `(dyn Dummy + 'a)`
|
2022-08-15 20:31:37 +00:00
|
|
|
= note: required for `Unique<(dyn Dummy + 'a)>` to implement `Send`
|
2023-05-03 16:27:29 +00:00
|
|
|
note: required because it appears within the type `Box<dyn Dummy>`
|
|
|
|
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `assert_send`
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/kindck-send-object1.rs:5:18
|
2021-07-31 16:26:55 +00: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`.
|