1 error[E0308]: mismatched types
2 --> $DIR/issue-78722.rs:12:20
4 LL | type F = impl core::future::Future<Output = u8>;
5 | -------------------------------------- the expected opaque type
7 LL | let f: F = async { 1 };
8 | - ^^^^^^^^^^^ expected opaque type, found a different opaque type
10 | expected due to this
12 ::: $SRC_DIR/core/src/future/mod.rs:LL:COL
14 LL | pub const fn from_generator<T>(gen: T) -> impl Future<Output = T::Return>
15 | ------------------------------- the found opaque type
17 = note: expected opaque type `impl Future<Output = u8>`
18 found opaque type `impl Future`
19 = note: distinct uses of `impl Trait` result in different opaque types
21 error: aborting due to previous error
23 For more information about this error, try `rustc --explain E0308`.