1 error[E0308]: if and else have incompatible types
2 --> $DIR/opaque-type-error.rs:20:9
6 | | ----------- expected because of this
9 | | ^^^^^^^^^^^ expected opaque type, found a different opaque type
11 | |_____- if and else have incompatible types
13 = note: expected type `impl std::future::Future` (opaque type at <$DIR/opaque-type-error.rs:8:19>)
14 found type `impl std::future::Future` (opaque type at <$DIR/opaque-type-error.rs:12:19>)
15 = note: distinct uses of `impl Trait` result in different opaque types
16 = help: if both `Future`s have the same `Output` type, consider `.await`ing on both of them
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0308`.