2 // aux-build: issue-72470-lib.rs
4 #![feature(into_future)]
6 extern crate issue_72470_lib;
7 use std::{future::{Future, IntoFuture}, pin::Pin};
11 impl IntoFuture for AwaitMe {
13 type Future = Pin<Box<dyn Future<Output = i32>>>;
15 fn into_future(self) -> Self::Future {
20 async fn me() -> i32 {
25 assert_eq!(AwaitMe.await, 41);
29 issue_72470_lib::run(run());