File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/tools/clippy/tests/ui Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ note: captured value is not `Send`
5555LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
5656 | ^^ has type `std::rc::Rc<[u8]>` which is not `Send`
5757 = note: `std::rc::Rc<[u8]>` doesn't implement `std::marker::Send`
58- note: captured value is not `Send`
58+ note: captured value is not `Send` because `&` references cannot be sent unless their referent is `Sync`
5959 --> $DIR/future_not_send.rs:20:40
6060 |
6161LL | async fn private_future2(rc: Rc<[u8]>, cell: &Cell<usize>) -> bool {
62- | ^^^^ has type `&std::cell::Cell<usize>` which is not `Send`
62+ | ^^^^ has type `&std::cell::Cell<usize>` which is not `Send`, because `std::cell::Cell<usize>` is not `Sync`
6363 = note: `std::cell::Cell<usize>` doesn't implement `std::marker::Sync`
6464
6565error: future cannot be sent between threads safely
You can’t perform that action at this time.
0 commit comments