about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-01-27 16:15:58 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-02-02 15:40:12 +0000
commit7fd9c7e6de6d214abd5cc6c2c28231e351a807d5 (patch)
tree509744dc960980880c5f3bbe7f5e06e8475ca371
parentb6d57ecc0bdbb3b6c3848782129703dd4cb251eb (diff)
downloadrust-7fd9c7e6de6d214abd5cc6c2c28231e351a807d5.tar.gz
rust-7fd9c7e6de6d214abd5cc6c2c28231e351a807d5.zip
undo a useless change
-rw-r--r--src/test/ui/async-await/async-error-span.rs3
-rw-r--r--src/test/ui/async-await/async-error-span.stderr4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ui/async-await/async-error-span.rs b/src/test/ui/async-await/async-error-span.rs
index 338483ff6ac..86d459bf084 100644
--- a/src/test/ui/async-await/async-error-span.rs
+++ b/src/test/ui/async-await/async-error-span.rs
@@ -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() {
diff --git a/src/test/ui/async-await/async-error-span.stderr b/src/test/ui/async-await/async-error-span.stderr
index 18e8dd940fa..7d4447b6d55 100644
--- a/src/test/ui/async-await/async-error-span.stderr
+++ b/src/test/ui/async-await/async-error-span.stderr
@@ -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;
    |                 ^^^^^^