about summary refs log tree commit diff
path: root/src/test/ui/async-await/await-into-future.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/async-await/await-into-future.rs')
-rw-r--r--src/test/ui/async-await/await-into-future.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/test/ui/async-await/await-into-future.rs b/src/test/ui/async-await/await-into-future.rs
deleted file mode 100644
index 8bf1385b3c5..00000000000
--- a/src/test/ui/async-await/await-into-future.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-// run-pass
-// aux-build: issue-72470-lib.rs
-// edition:2021
-extern crate issue_72470_lib;
-use std::{future::{Future, IntoFuture}, pin::Pin};
-
-struct AwaitMe;
-
-impl IntoFuture for AwaitMe {
-    type Output = i32;
-    type IntoFuture = Pin<Box<dyn Future<Output = i32>>>;
-
-    fn into_future(self) -> Self::IntoFuture {
-        Box::pin(me())
-    }
-}
-
-async fn me() -> i32 {
-    41
-}
-
-async fn run() {
-    assert_eq!(AwaitMe.await, 41);
-}
-
-fn main() {
-    issue_72470_lib::run(run());
-}