summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/generator-desc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/async-await/generator-desc.rs')
-rw-r--r--src/test/ui/async-await/generator-desc.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/async-await/generator-desc.rs b/src/test/ui/async-await/generator-desc.rs
deleted file mode 100644
index 500812016..000000000
--- a/src/test/ui/async-await/generator-desc.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-// edition:2018
-#![feature(async_closure)]
-use std::future::Future;
-
-async fn one() {}
-async fn two() {}
-
-fn fun<F: Future<Output = ()>>(f1: F, f2: F) {}
-fn main() {
- fun(async {}, async {});
- //~^ ERROR mismatched types
- fun(one(), two());
- //~^ ERROR mismatched types
- fun((async || {})(), (async || {})());
- //~^ ERROR mismatched types
-}