1 error[E0308]: mismatched types
2 --> $DIR/generator-desc.rs:10:25
4 LL | fun(async {}, async {});
5 | -- ^^ expected `async` block, found a different `async` block
7 | the expected `async` block
9 = note: expected `async` block `[static generator@$DIR/generator-desc.rs:10:15: 10:17]`
10 found `async` block `[static generator@$DIR/generator-desc.rs:10:25: 10:27]`
12 error[E0308]: mismatched types
13 --> $DIR/generator-desc.rs:12:16
15 LL | async fn one() {}
16 | - the `Output` of this `async fn`'s expected opaque type
17 LL | async fn two() {}
18 | - the `Output` of this `async fn`'s found opaque type
20 LL | fun(one(), two());
21 | ^^^^^ expected opaque type, found a different opaque type
23 = note: expected opaque type `impl Future` (opaque type at <$DIR/generator-desc.rs:5:16>)
24 found opaque type `impl Future` (opaque type at <$DIR/generator-desc.rs:6:16>)
25 = help: consider `await`ing on both `Future`s
26 = note: distinct uses of `impl Trait` result in different opaque types
28 error[E0308]: mismatched types
29 --> $DIR/generator-desc.rs:14:26
31 LL | fun((async || {})(), (async || {})());
32 | -- ^^^^^^^^^^^^^^^ expected `async` closure body, found a different `async` closure body
34 | the expected `async` closure body
36 ::: $SRC_DIR/core/src/future/mod.rs:LL:COL
38 LL | pub const fn from_generator<T>(gen: T) -> impl Future<Output = T::Return>
39 | -------------------------------
41 | the expected opaque type
42 | the found opaque type
44 = note: expected opaque type `impl Future` (`async` closure body)
45 found opaque type `impl Future` (`async` closure body)
47 error: aborting due to 3 previous errors
49 For more information about this error, try `rustc --explain E0308`.