2023-03-29 22:51:27 -05:00
|
|
|
error[E0277]: `impl Future<Output = ()>` cannot be sent between threads safely
|
2023-03-29 15:18:20 -05:00
|
|
|
--> $DIR/auto-with-drop_tracking_mir.rs:25:13
|
2023-03-29 22:51:27 -05:00
|
|
|
|
|
|
|
|
LL | is_send(foo());
|
|
|
|
| ------- ^^^^^ `impl Future<Output = ()>` cannot be sent between threads safely
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
|
|
|
|
|
|
|
|
= help: the trait `Send` is not implemented for `impl Future<Output = ()>`
|
|
|
|
note: required by a bound in `is_send`
|
2023-03-29 15:18:20 -05:00
|
|
|
--> $DIR/auto-with-drop_tracking_mir.rs:24:24
|
2023-03-29 22:51:27 -05:00
|
|
|
|
|
|
|
|
LL | fn is_send(_: impl Send) {}
|
|
|
|
| ^^^^ required by this bound in `is_send`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-03-29 22:51:27 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|