Skip to content

Doesn't handle references inside generics (e.g. Option) #34

Closed
@puckipedia

Description

@puckipedia
#[async_recursion::async_recursion]
async fn meow(n : Option<&str>) -> () {
    meow(n).await
}

expands to (cleaned):

#[must_use]
fn meow(
    n: Option<&str>,
) -> Pin<Box<dyn Future<Output = ()> + Send>> {
    Box::pin(async move { meow(n).await })
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions