Skip to content

Commit 7fd9c7e

Browse files
committed
undo a useless change
1 parent b6d57ec commit 7fd9c7e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/test/ui/async-await/async-error-span.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
use std::future::Future;
66

77
fn get_future() -> impl Future<Output = ()> {
8-
panic!() //~^ ERROR `()` is not a future
8+
//~^ ERROR `()` is not a future
9+
panic!()
910
}
1011

1112
async fn foo() {

src/test/ui/async-await/async-error-span.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ LL | fn get_future() -> impl Future<Output = ()> {
88
= note: () must be a future or must implement `IntoFuture` to be awaited
99

1010
error[E0698]: type inside `async fn` body must be known in this context
11-
--> $DIR/async-error-span.rs:12:9
11+
--> $DIR/async-error-span.rs:13:9
1212
|
1313
LL | let a;
1414
| ^ cannot infer type
1515
|
1616
note: the type is part of the `async fn` body because of this `await`
17-
--> $DIR/async-error-span.rs:13:17
17+
--> $DIR/async-error-span.rs:14:17
1818
|
1919
LL | get_future().await;
2020
| ^^^^^^

0 commit comments

Comments
 (0)