1use futures::executor::block_on;
2
3async fn my_async_fn() {}
4
5#[test]
6fn pin() {
7 block_on(async {
8 let future = my_async_fn();
9 tokio::pin!(future);
10 (&mut future).await
11 });
12}
13