2 #![doc(html_playground_url = "https://play.rust-lang.org/")]
7 /// use std::future::Future;
9 /// fn foo_recursive(n: usize) -> Pin<Box<dyn Future<Output = ()>>> {
10 /// Box::pin(async move {
12 /// foo_recursive(n - 1).await;
19 // @has foo/fn.bar.html
20 // @has - '//a[@class="test-arrow"]' "Run"
21 // @has - '//*[@class="docblock"]' 'foo_recursive'