2 // aux-build: issue-72470-lib.rs
4 extern crate issue_72470_lib;
5 use std::{future::{Future, IntoFuture}, pin::Pin};
9 impl IntoFuture for AwaitMe {
11 type IntoFuture = Pin<Box<dyn Future<Output = i32>>>;
13 fn into_future(self) -> Self::IntoFuture {
18 async fn me() -> i32 {
23 assert_eq!(AwaitMe.await, 41);
27 issue_72470_lib::run(run());