]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/opaque-type-error.stderr
Rollup merge of #65261 - nnethercote:rm-Option-from-TokenStream, r=petrochenkov
[rust.git] / src / test / ui / suggestions / opaque-type-error.stderr
1 error[E0308]: if and else have incompatible types
2   --> $DIR/opaque-type-error.rs:20:9
3    |
4 LL | /     if true {
5 LL | |         thing_one()
6    | |         ----------- expected because of this
7 LL | |     } else {
8 LL | |         thing_two()
9    | |         ^^^^^^^^^^^ expected opaque type, found a different opaque type
10 LL | |     }.await
11    | |_____- if and else have incompatible types
12    |
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
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.