IK
Size: a a a
DN
wrapper
? foo
не моя, из библиотеки. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f0c7d1349d9658da886df2d3a6b214a4АГ
АГ
G
АГ
G
'f
у результата из .transaction()
, потому что 'c
у коннекшена => 'c
== '1
АГ
'f
у результата из .transaction()
, потому что 'c
у коннекшена => 'c
== '1
G
error: lifetime may not live long enough
--> src\entities\users\service.rs:41:9
|
41 | async move |x| -> AResult<User>
| ^^^^^^^^^^^^-^^^^^^^^^^^^^^^^^-
| | | |
| | | return type of closure is impl futures::Future
| | has type `&'1 mut sqlx::PgConnection`
| returning this value requires that `'1` must outlive `'2`
error: aborting due to previous error; 1 warning emitted
E
error: lifetime may not live long enough
--> src\entities\users\service.rs:41:9
|
41 | async move |x| -> AResult<User>
| ^^^^^^^^^^^^-^^^^^^^^^^^^^^^^^-
| | | |
| | | return type of closure is impl futures::Future
| | has type `&'1 mut sqlx::PgConnection`
| returning this value requires that `'1` must outlive `'2`
error: aborting due to previous error; 1 warning emitted
G
E
G
G
G
E
G
`async` non-`move` closures with parameters are not currently supported E0708 Help: consider using `let` statements to manually capture variables by reference before entering an `async move` closure
E
`async` non-`move` closures with parameters are not currently supported E0708 Help: consider using `let` statements to manually capture variables by reference before entering an `async move` closure
G