1
1
error[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
3
3
|
4
- LL | async fn async_dummy() {}
5
- | - checked the `Output` of this `async fn`, found opaque type
6
- ...
7
4
LL | let _ = match true {
8
5
| _____________-
9
6
LL | | true => {
@@ -18,7 +15,11 @@ LL | |
18
15
LL | | };
19
16
| |_____- `match` arms have incompatible types
20
17
|
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
22
23
= note: expected type `()`
23
24
found opaque type `impl Future`
24
25
help: consider `await`ing on the `Future`
@@ -31,11 +32,8 @@ LL | async_dummy()
31
32
| --
32
33
33
34
error[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
35
36
|
36
- LL | async fn async_dummy2() {}
37
- | - checked the `Output` of this `async fn`, found opaque type
38
- ...
39
37
LL | let _ = match true {
40
38
| _____________-
41
39
LL | | true => {
@@ -50,7 +48,11 @@ LL | |
50
48
LL | | };
51
49
| |_____- `match` arms have incompatible types
52
50
|
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
54
56
= note: expected type `()`
55
57
found opaque type `impl Future`
56
58
help: consider `await`ing on the `Future`
@@ -66,11 +68,8 @@ LL | false => Box::new(async_dummy2()),
66
68
|
67
69
68
70
error[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
70
72
|
71
- LL | async fn async_dummy2() {}
72
- | - checked the `Output` of this `async fn`, found opaque type
73
- ...
74
73
LL | let _ = match true {
75
74
| _____________-
76
75
LL | | true => async_dummy(),
@@ -83,9 +82,13 @@ LL | |
83
82
LL | | };
84
83
| |_____- `match` arms have incompatible types
85
84
|
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
87
90
= 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>)
89
92
= note: distinct uses of `impl Trait` result in different opaque types
90
93
help: consider `await`ing on both `Future`s
91
94
|
0 commit comments