File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 55use std:: future:: Future ;
66
77fn get_future ( ) -> impl Future < Output = ( ) > {
8- panic ! ( ) //~^ ERROR `()` is not a future
8+ //~^ ERROR `()` is not a future
9+ panic ! ( )
910}
1011
1112async fn foo ( ) {
Original file line number Diff line number Diff 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
1010error[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 |
1313LL | let a;
1414 | ^ cannot infer type
1515 |
1616note: 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 |
1919LL | get_future().await;
2020 | ^^^^^^
You can’t perform that action at this time.
0 commit comments