summaryrefslogtreecommitdiffstats
path: root/third_party/rust/futures/tests/test_macro.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/futures/tests/test_macro.rs')
-rw-r--r--third_party/rust/futures/tests/test_macro.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/third_party/rust/futures/tests/test_macro.rs b/third_party/rust/futures/tests/test_macro.rs
new file mode 100644
index 0000000000..6adf51d8bb
--- /dev/null
+++ b/third_party/rust/futures/tests/test_macro.rs
@@ -0,0 +1,20 @@
+#[futures_test::test]
+async fn it_works() {
+ let fut = async { true };
+ assert!(fut.await);
+
+ let fut = async { false };
+ assert!(!fut.await);
+}
+
+#[should_panic]
+#[futures_test::test]
+async fn it_is_being_run() {
+ let fut = async { false };
+ assert!(fut.await);
+}
+
+#[futures_test::test]
+async fn return_ty() -> Result<(), ()> {
+ Ok(())
+}