11error[E0308]: `match` arms have incompatible types
2- --> $DIR/match-prev-arm-needing-semi.rs:26 :18
2+ --> $DIR/match-prev-arm-needing-semi.rs:32 :18
33 |
4- LL | async fn async_dummy() {}
5- | - checked the `Output` of this `async fn`, found opaque type
6- ...
74LL | let _ = match true {
85 | _____________-
96LL | | true => {
@@ -18,7 +15,11 @@ LL | |
1815LL | | };
1916 | |_____- `match` arms have incompatible types
2017 |
21- = note: while checking the return type of the `async fn`
18+ note: while checking the return type of the `async fn`
19+ --> $DIR/match-prev-arm-needing-semi.rs:16:24
20+ |
21+ LL | async fn async_dummy() {}
22+ | ^ checked the `Output` of this `async fn`, found opaque type
2223 = note: expected type `()`
2324 found opaque type `impl Future`
2425help: consider `await`ing on the `Future`
@@ -31,11 +32,8 @@ LL | async_dummy()
3132 | --
3233
3334error[E0308]: `match` arms have incompatible types
34- --> $DIR/match-prev-arm-needing-semi.rs:40 :18
35+ --> $DIR/match-prev-arm-needing-semi.rs:45 :18
3536 |
36- LL | async fn async_dummy2() {}
37- | - checked the `Output` of this `async fn`, found opaque type
38- ...
3937LL | let _ = match true {
4038 | _____________-
4139LL | | true => {
@@ -50,7 +48,11 @@ LL | |
5048LL | | };
5149 | |_____- `match` arms have incompatible types
5250 |
53- = note: while checking the return type of the `async fn`
51+ note: while checking the return type of the `async fn`
52+ --> $DIR/match-prev-arm-needing-semi.rs:19:25
53+ |
54+ LL | async fn async_dummy2() {}
55+ | ^ checked the `Output` of this `async fn`, found opaque type
5456 = note: expected type `()`
5557 found opaque type `impl Future`
5658help: consider `await`ing on the `Future`
@@ -66,11 +68,8 @@ LL | false => Box::new(async_dummy2()),
6668 |
6769
6870error[E0308]: `match` arms have incompatible types
69- --> $DIR/match-prev-arm-needing-semi.rs:52 :18
71+ --> $DIR/match-prev-arm-needing-semi.rs:56 :18
7072 |
71- LL | async fn async_dummy2() {}
72- | - checked the `Output` of this `async fn`, found opaque type
73- ...
7473LL | let _ = match true {
7574 | _____________-
7675LL | | true => async_dummy(),
@@ -83,9 +82,13 @@ LL | |
8382LL | | };
8483 | |_____- `match` arms have incompatible types
8584 |
86- = note: while checking the return type of the `async fn`
85+ note: while checking the return type of the `async fn`
86+ --> $DIR/match-prev-arm-needing-semi.rs:19:25
87+ |
88+ LL | async fn async_dummy2() {}
89+ | ^ checked the `Output` of this `async fn`, found opaque type
8790 = 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>)
91+ found opaque type `impl Future` (opaque type at <$DIR/match-prev-arm-needing-semi.rs:19 :25>)
8992 = note: distinct uses of `impl Trait` result in different opaque types
9093help: consider `await`ing on both `Future`s
9194 |
0 commit comments