2 #![feature(async_closure)]
3 use std::future::Future;
8 fn fun<F: Future<Output = ()>>(f1: F, f2: F) {}
10 fun(async {}, async {});
11 //~^ ERROR mismatched types
13 //~^ ERROR mismatched types
14 fun((async || {})(), (async || {})());
15 //~^ ERROR mismatched types