summaryrefslogtreecommitdiffstats
path: root/tests-integration/tests/macros_pin.rs
blob: 37d8f70f41349f716da714e848c0e3ecaf4dd5f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use futures::executor::block_on;

async fn my_async_fn() {}

#[test]
fn pin() {
    block_on(async {
        let future = my_async_fn();
        tokio::pin!(future);
        (&mut future).await
    });
}