File: lifetimes_nested_reference.expanded.rs

package info (click to toggle)
rust-async-recursion 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: makefile: 2
file content (19 lines) | stat: -rw-r--r-- 381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use async_recursion::async_recursion;
#[must_use]
fn count_down<'life0, 'async_recursion>(
    foo: Option<&'life0 str>,
) -> ::core::pin::Pin<
    Box<
        dyn ::core::future::Future<
            Output = i32,
        > + 'async_recursion + ::core::marker::Send,
    >,
>
where
    'life0: 'async_recursion,
{
    Box::pin(async move {
        let _ = foo;
        0
    })
}