undo a useless change

This commit is contained in:
Oli Scherer 2022-01-27 16:15:58 +00:00
parent b6d57ecc0b
commit 7fd9c7e6de
2 changed files with 4 additions and 3 deletions

View file

@ -5,7 +5,8 @@
use std::future::Future;
fn get_future() -> impl Future<Output = ()> {
panic!() //~^ ERROR `()` is not a future
//~^ ERROR `()` is not a future
panic!()
}
async fn foo() {

View file

@ -8,13 +8,13 @@ LL | fn get_future() -> impl Future<Output = ()> {
= note: () must be a future or must implement `IntoFuture` to be awaited
error[E0698]: type inside `async fn` body must be known in this context
--> $DIR/async-error-span.rs:12:9
--> $DIR/async-error-span.rs:13:9
|
LL | let a;
| ^ cannot infer type
|
note: the type is part of the `async fn` body because of this `await`
--> $DIR/async-error-span.rs:13:17
--> $DIR/async-error-span.rs:14:17
|
LL | get_future().await;
| ^^^^^^