@@ -6,11 +6,6 @@ LL | take_u32(x)
66 | |
77 | arguments to this function are incorrect
88 |
9- note: while checking the return type of the `async fn`
10- --> $DIR/suggest-missing-await.rs:5:24
11- |
12- LL | async fn make_u32() -> u32 {
13- | ^^^ checked the `Output` of this `async fn`, found opaque type
149 = note: expected type `u32`
1510 found opaque type `impl Future<Output = u32>`
1611note: function defined here
@@ -29,11 +24,6 @@ error[E0308]: mismatched types
2924LL | dummy()
3025 | ^^^^^^^ expected `()`, found opaque type
3126 |
32- note: while checking the return type of the `async fn`
33- --> $DIR/suggest-missing-await.rs:18:18
34- |
35- LL | async fn dummy() {}
36- | ^ checked the `Output` of this `async fn`, found opaque type
3727 = note: expected unit type `()`
3828 found opaque type `impl Future<Output = ()>`
3929help: consider `await`ing on the `Future`
@@ -60,11 +50,6 @@ LL | |
6050LL | | };
6151 | |_____- `if` and `else` have incompatible types
6252 |
63- note: while checking the return type of the `async fn`
64- --> $DIR/suggest-missing-await.rs:18:18
65- |
66- LL | async fn dummy() {}
67- | ^ checked the `Output` of this `async fn`, expected opaque type
6853 = note: expected opaque type `impl Future<Output = ()>`
6954 found unit type `()`
7055help: consider `await`ing on the `Future`
@@ -87,11 +72,6 @@ LL | |
8772LL | | };
8873 | |_____- `match` arms have incompatible types
8974 |
90- note: while checking the return type of the `async fn`
91- --> $DIR/suggest-missing-await.rs:18:18
92- |
93- LL | async fn dummy() {}
94- | ^ checked the `Output` of this `async fn`, expected opaque type
9575 = note: expected opaque type `impl Future<Output = ()>`
9676 found unit type `()`
9777help: consider `await`ing on the `Future`
@@ -108,11 +88,6 @@ LL | let _x = match dummy() {
10888LL | () => {}
10989 | ^^ expected opaque type, found `()`
11090 |
111- note: while checking the return type of the `async fn`
112- --> $DIR/suggest-missing-await.rs:18:18
113- |
114- LL | async fn dummy() {}
115- | ^ checked the `Output` of this `async fn`, expected opaque type
11691 = note: expected opaque type `impl Future<Output = ()>`
11792 found unit type `()`
11893help: consider `await`ing on the `Future`
@@ -129,11 +104,6 @@ LL | match dummy_result() {
129104LL | Ok(_) => {}
130105 | ^^^^^ expected opaque type, found enum `Result`
131106 |
132- note: while checking the return type of the `async fn`
133- --> $DIR/suggest-missing-await.rs:57:28
134- |
135- LL | async fn dummy_result() -> Result<(), ()> {
136- | ^^^^^^^^^^^^^^ checked the `Output` of this `async fn`, expected opaque type
137107 = note: expected opaque type `impl Future<Output = Result<(), ()>>`
138108 found enum `Result<_, _>`
139109help: consider `await`ing on the `Future`
@@ -150,11 +120,6 @@ LL | match dummy_result() {
150120LL | Err(_) => {}
151121 | ^^^^^^ expected opaque type, found enum `Result`
152122 |
153- note: while checking the return type of the `async fn`
154- --> $DIR/suggest-missing-await.rs:57:28
155- |
156- LL | async fn dummy_result() -> Result<(), ()> {
157- | ^^^^^^^^^^^^^^ checked the `Output` of this `async fn`, expected opaque type
158123 = note: expected opaque type `impl Future<Output = Result<(), ()>>`
159124 found enum `Result<_, _>`
160125help: consider `await`ing on the `Future`
0 commit comments