error[E0277]: `dyn Stream` cannot be sent between threads safely --> tests/ui/threads-safety.rs:29:17 | 29 | assert_send(boxed_local()); //~ ERROR `dyn futures_core::stream::Stream` cannot be sent between threads safely | ----------- ^^^^^^^^^^^^^ `dyn Stream` cannot be sent between threads safely | | | required by a bound introduced by this call | = help: the trait `Send` is not implemented for `dyn Stream`, which is required by `Pin>>: Send` = note: required for `Unique>` to implement `Send` note: required because it appears within the type `Box>` --> $RUST/alloc/src/boxed.rs | | pub struct Box< | ^^^ note: required because it appears within the type `Pin>>` --> $RUST/core/src/pin.rs | | pub struct Pin { | ^^^ note: required by a bound in `assert_send` --> tests/ui/threads-safety.rs:7:19 | 7 | fn assert_send(_: T) {} | ^^^^ required by this bound in `assert_send`