Compiling playground v0.0.1 (/playground)
error: lifetime may not live long enough
--> src/main.rs:39:23
|
39 | async_with_config(async move |c| {
| ^^^^^^^^^^^^--
| | ||
| | |return type of closure `[async closure body@src/main.rs:39:38: 41:6]` contains a lifetime `'2`
| | has type `Option<&'1 Config>`
| returning this value requires that `'1` must outlive `'2`
error: could not compile `playground` due to previous error
Standard Output