2023-10-19 16:46:28 -05:00
error: coroutine cannot be sent between threads safely
2023-06-24 05:02:54 -05:00
--> $DIR/parent-expression.rs:23:13
2022-07-01 00:05:00 -05:00
|
LL | assert_send(g);
2024-01-23 20:52:29 -06:00
| ^^^^^^^^^^^^^^ coroutine is not `Send`
2022-07-01 00:05:00 -05:00
...
LL | / type_combinations!(
LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... |
LL | | };
LL | | );
| |_____- in this macro invocation
|
2024-04-11 08:15:34 -05:00
= help: within `{coroutine@$DIR/parent-expression.rs:17:34: 17:41}`, the trait `Send` is not implemented for `derived_drop::Client`, which is required by `{coroutine@$DIR/parent-expression.rs:17:34: 17:41}: Send`
2023-10-19 16:46:28 -05:00
note: coroutine is not `Send` as this value is used across a yield
2023-06-24 05:02:54 -05:00
--> $DIR/parent-expression.rs:21:22
2022-07-01 00:05:00 -05:00
|
2024-04-11 08:15:34 -05:00
LL | let g = #[coroutine] move || match drop($name::Client { ..$name::Client::default() }) {
| ------------------------ has type `derived_drop::Client` which is not `Send`
2022-07-01 00:05:00 -05:00
...
LL | _ => yield,
| ^^^^^ yield occurs here, with `$name::Client::default()` maybe used later
...
LL | / type_combinations!(
LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... |
LL | | };
LL | | );
| |_____- in this macro invocation
note: required by a bound in `assert_send`
2023-06-24 05:02:54 -05:00
--> $DIR/parent-expression.rs:40:19
2022-07-01 00:05:00 -05:00
|
LL | fn assert_send<T: Send>(_thing: T) {}
| ^^^^ required by this bound in `assert_send`
= note: this error originates in the macro `type_combinations` (in Nightly builds, run with -Z macro-backtrace for more info)
2023-10-19 16:46:28 -05:00
error: coroutine cannot be sent between threads safely
2023-06-24 05:02:54 -05:00
--> $DIR/parent-expression.rs:23:13
2022-07-01 00:05:00 -05:00
|
LL | assert_send(g);
2024-01-23 20:52:29 -06:00
| ^^^^^^^^^^^^^^ coroutine is not `Send`
2022-07-01 00:05:00 -05:00
...
LL | / type_combinations!(
LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... |
LL | | };
LL | | );
| |_____- in this macro invocation
|
2024-04-11 08:15:34 -05:00
= help: within `{coroutine@$DIR/parent-expression.rs:17:34: 17:41}`, the trait `Send` is not implemented for `significant_drop::Client`, which is required by `{coroutine@$DIR/parent-expression.rs:17:34: 17:41}: Send`
2023-10-19 16:46:28 -05:00
note: coroutine is not `Send` as this value is used across a yield
2023-06-24 05:02:54 -05:00
--> $DIR/parent-expression.rs:21:22
2022-07-01 00:05:00 -05:00
|
2024-04-11 08:15:34 -05:00
LL | let g = #[coroutine] move || match drop($name::Client { ..$name::Client::default() }) {
| ------------------------ has type `significant_drop::Client` which is not `Send`
2022-07-01 00:05:00 -05:00
...
LL | _ => yield,
| ^^^^^ yield occurs here, with `$name::Client::default()` maybe used later
...
LL | / type_combinations!(
LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... |
LL | | };
LL | | );
| |_____- in this macro invocation
note: required by a bound in `assert_send`
2023-06-24 05:02:54 -05:00
--> $DIR/parent-expression.rs:40:19
2022-07-01 00:05:00 -05:00
|
LL | fn assert_send<T: Send>(_thing: T) {}
| ^^^^ required by this bound in `assert_send`
= note: this error originates in the macro `type_combinations` (in Nightly builds, run with -Z macro-backtrace for more info)
2023-10-19 16:46:28 -05:00
error: coroutine cannot be sent between threads safely
2023-06-24 05:02:54 -05:00
--> $DIR/parent-expression.rs:23:13
2022-07-01 00:05:00 -05:00
|
LL | assert_send(g);
2024-01-23 20:52:29 -06:00
| ^^^^^^^^^^^^^^ coroutine is not `Send`
2022-07-01 00:05:00 -05:00
...
LL | / type_combinations!(
LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... |
LL | | };
LL | | );
| |_____- in this macro invocation
|
2024-04-11 08:15:34 -05:00
= help: within `{coroutine@$DIR/parent-expression.rs:17:34: 17:41}`, the trait `Send` is not implemented for `insignificant_dtor::Client`, which is required by `{coroutine@$DIR/parent-expression.rs:17:34: 17:41}: Send`
2023-10-19 16:46:28 -05:00
note: coroutine is not `Send` as this value is used across a yield
2023-06-24 05:02:54 -05:00
--> $DIR/parent-expression.rs:21:22
2022-07-01 00:05:00 -05:00
|
2024-04-11 08:15:34 -05:00
LL | let g = #[coroutine] move || match drop($name::Client { ..$name::Client::default() }) {
| ------------------------ has type `insignificant_dtor::Client` which is not `Send`
2022-07-01 00:05:00 -05:00
...
LL | _ => yield,
| ^^^^^ yield occurs here, with `$name::Client::default()` maybe used later
...
LL | / type_combinations!(
LL | | // OK
LL | | copy => { #[derive(Copy, Clone, Default)] pub struct Client; };
LL | | // NOT OK: MIR borrowck thinks that this is used after the yield, even though
... |
LL | | };
LL | | );
| |_____- in this macro invocation
note: required by a bound in `assert_send`
2023-06-24 05:02:54 -05:00
--> $DIR/parent-expression.rs:40:19
2022-07-01 00:05:00 -05:00
|
LL | fn assert_send<T: Send>(_thing: T) {}
| ^^^^ required by this bound in `assert_send`
= note: this error originates in the macro `type_combinations` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 3 previous errors