about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/run-pass/async-await.rs1
-rw-r--r--src/test/run-pass/async-await.stderr14
2 files changed, 1 insertions, 14 deletions
diff --git a/src/test/run-pass/async-await.rs b/src/test/run-pass/async-await.rs
index 0cd9bad03af..59da7580354 100644
--- a/src/test/run-pass/async-await.rs
+++ b/src/test/run-pass/async-await.rs
@@ -170,6 +170,7 @@ fn main() {
         async_closure,
         async_fn,
         async_fn_with_internal_borrow,
+        Foo::async_method,
         |x| {
             async move {
                 unsafe { await!(unsafe_async_fn(x)) }
diff --git a/src/test/run-pass/async-await.stderr b/src/test/run-pass/async-await.stderr
deleted file mode 100644
index b0bdf17cecd..00000000000
--- a/src/test/run-pass/async-await.stderr
+++ /dev/null
@@ -1,14 +0,0 @@
-warning: struct is never constructed: `Foo`
-  --> $DIR/async-await.rs:122:1
-   |
-LL | struct Foo;
-   | ^^^^^^^^^^^
-   |
-   = note: #[warn(dead_code)] on by default
-
-warning: method is never used: `async_method`
-  --> $DIR/async-await.rs:129:5
-   |
-LL |     async fn async_method(x: u8) -> u8 {
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-