mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Update trybuild test
This commit is contained in:
@@ -6,12 +6,12 @@ error: future cannot be sent between threads safely
|
|||||||
|
|
|
|
||||||
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
|
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
|
||||||
note: future is not `Send` as this value is used across an await
|
note: future is not `Send` as this value is used across an await
|
||||||
--> tests/debug_handler/fail/not_send.rs:6:5
|
--> tests/debug_handler/fail/not_send.rs:6:13
|
||||||
|
|
|
|
||||||
5 | let rc = std::rc::Rc::new(());
|
5 | let rc = std::rc::Rc::new(());
|
||||||
| -- has type `Rc<()>` which is not `Send`
|
| -- has type `Rc<()>` which is not `Send`
|
||||||
6 | async {}.await;
|
6 | async {}.await;
|
||||||
| ^^^^^^^^^^^^^^ await occurs here, with `rc` maybe used later
|
| ^^^^^^ await occurs here, with `rc` maybe used later
|
||||||
7 | }
|
7 | }
|
||||||
| - `rc` is later dropped here
|
| - `rc` is later dropped here
|
||||||
note: required by a bound in `check`
|
note: required by a bound in `check`
|
||||||
|
|||||||
Reference in New Issue
Block a user