error[E0716]: temporary value dropped while borrowed
--> tests/ui/json_request_view_cannot_escape_task.rs:25:1
|
25 | #[sark_gen::handler]
| ^^^^^^^^^^^^^^^^^^^-
| | |
| | temporary value is freed at the end of this statement
| creates a temporary value which is freed while still in use
| lifetime `'d` defined here
26 | async fn leak(request: Request, state: &State<'_>) -> Reply {
27 | state.leaked.set(Some(request.body.payload));
| -------------------------------------------- argument requires that borrow lasts for `'d`
|
= note: this error originates in the attribute macro `::sark::fiber_fn` (in Nightly builds, run with -Z macro-backtrace for more info)