about summary refs log tree commit diff
path: root/src/test/ui/async-await/issue-72442.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/async-await/issue-72442.rs')
-rw-r--r--src/test/ui/async-await/issue-72442.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/test/ui/async-await/issue-72442.rs b/src/test/ui/async-await/issue-72442.rs
deleted file mode 100644
index 2280154c715..00000000000
--- a/src/test/ui/async-await/issue-72442.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-// edition:2018
-// incremental
-
-use std::fs::File;
-use std::future::Future;
-use std::io::prelude::*;
-
-fn main() -> Result<(), Box<dyn std::error::Error>> {
-    block_on(async {
-        {
-            let path = std::path::Path::new(".");
-            let mut f = File::open(path.to_str())?;
-            //~^ ERROR the trait bound
-            let mut src = String::new();
-            f.read_to_string(&mut src)?;
-            Ok(())
-        }
-    })
-}
-
-fn block_on<F>(f: F) -> F::Output
-where
-    F: Future<Output = Result<(), Box<dyn std::error::Error>>>,
-{
-    Ok(())
-}