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 | - checked the `Output` of this `async fn`, expected opaque type
17 LL | async fn two() {}
18 | - checked the `Output` of this `async fn`, found opaque type
20 LL | fun(one(), two());
21 | ^^^^^ expected opaque type, found a different opaque type
23 = note: while checking the return type of the `async fn`
24 = note: while checking the return type of the `async fn`
25 = note: expected opaque type `impl Future` (opaque type at <$DIR/generator-desc.rs:5:16>)
26 found opaque type `impl Future` (opaque type at <$DIR/generator-desc.rs:6:16>)
27 = help: consider `await`ing on both `Future`s
28 = note: distinct uses of `impl Trait` result in different opaque types
30 error[E0308]: mismatched types
31 --> $DIR/generator-desc.rs:14:26
33 LL | fun((async || {})(), (async || {})());
34 | -- ^^^^^^^^^^^^^^^ expected `async` closure body, found a different `async` closure body
36 | the expected `async` closure body
38 ::: $SRC_DIR/core/src/future/mod.rs:LL:COL
40 LL | pub const fn from_generator<T>(gen: T) -> impl Future<Output = T::Return>
41 | -------------------------------
43 | the expected opaque type
44 | the found opaque type
46 = note: expected opaque type `impl Future` (`async` closure body)
47 found opaque type `impl Future` (`async` closure body)
49 error: aborting due to 3 previous errors
51 For more information about this error, try `rustc --explain E0308`.