]> git.lizzy.rs Git - rust.git/commitdiff
Call Foo::async_method in the async-await test
authorJonas Schievink <jonasschievink@gmail.com>
Thu, 4 Oct 2018 12:44:46 +0000 (14:44 +0200)
committerJonas Schievink <jonasschievink@gmail.com>
Thu, 4 Oct 2018 12:44:46 +0000 (14:44 +0200)
src/test/run-pass/async-await.rs
src/test/run-pass/async-await.stderr [deleted file]

index 0cd9bad03af9ffd64dcca66599953b3ea17e0248..59da7580354669c369cfc7072f250dc61a18fa57 100644 (file)
@@ -170,6 +170,7 @@ macro_rules! test_with_borrow {
         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 (file)
index b0bdf17..0000000
+++ /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 {
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-