1 error[E0308]: `match` arms have incompatible types
2 --> $DIR/match-prev-arm-needing-semi.rs:26:18
4 LL | async fn async_dummy() {}
5 | - the `Output` of this `async fn`'s found opaque type
7 LL | let _ = match true {
11 | | -------------- this is found to be of type `()`
14 LL | | false => async_dummy(),
15 | | ^^^^^^^^^^^^^ expected `()`, found opaque type
19 | |_____- `match` arms have incompatible types
21 = note: expected type `()`
22 found opaque type `impl Future`
23 help: consider `await`ing on the `Future`
25 LL | false => async_dummy().await,
27 help: consider removing this semicolon and boxing the expressions
29 LL | Box::new(async_dummy())
32 LL | false => Box::new(async_dummy()),
35 error[E0308]: `match` arms have incompatible types
36 --> $DIR/match-prev-arm-needing-semi.rs:39:18
38 LL | async fn async_dummy2() {}
39 | - the `Output` of this `async fn`'s found opaque type
41 LL | let _ = match true {
45 | | -------------- this is found to be of type `()`
48 LL | | false => async_dummy2(),
49 | | ^^^^^^^^^^^^^^ expected `()`, found opaque type
53 | |_____- `match` arms have incompatible types
55 = note: expected type `()`
56 found opaque type `impl Future`
57 help: consider `await`ing on the `Future`
59 LL | false => async_dummy2().await,
61 help: consider removing this semicolon and boxing the expressions
63 LL | Box::new(async_dummy())
66 LL | false => Box::new(async_dummy2()),
69 error[E0308]: `match` arms have incompatible types
70 --> $DIR/match-prev-arm-needing-semi.rs:50:18
72 LL | async fn async_dummy2() {}
73 | - the `Output` of this `async fn`'s found opaque type
75 LL | let _ = match true {
77 LL | | true => async_dummy(),
78 | | ------------- this is found to be of type `impl Future`
80 LL | | false => async_dummy2(),
81 | | ^^^^^^^^^^^^^^ expected opaque type, found a different opaque type
85 | |_____- `match` arms have incompatible types
87 = note: expected type `impl Future` (opaque type at <$DIR/match-prev-arm-needing-semi.rs:16:24>)
88 found opaque type `impl Future` (opaque type at <$DIR/match-prev-arm-needing-semi.rs:17:25>)
89 = note: distinct uses of `impl Trait` result in different opaque types
90 help: consider `await`ing on both `Future`s
92 LL | true => async_dummy().await,
94 LL | false => async_dummy2().await,
97 error[E0308]: `match` arms have incompatible types
98 --> $DIR/match-prev-arm-needing-semi.rs:11:18
100 LL | let _ = match true {
106 | | | help: consider removing this semicolon
107 | | this is found to be of type `()`
110 LL | | false => dummy(),
111 | | ^^^^^^^ expected `()`, found `i32`
114 | |_____- `match` arms have incompatible types
116 error: aborting due to 4 previous errors
118 For more information about this error, try `rustc --explain E0308`.