about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authoryanglsh <yanglsh@shanghaitech.edu.cn>2025-07-18 22:17:53 +0800
committeryanglsh <yanglsh@shanghaitech.edu.cn>2025-07-22 23:25:31 +0800
commit6a8780473e689315583fe49b5479d51cd6b721dd (patch)
treeabbf028d538f6bd94c5147634e40a28ca0ea79d2 /tests
parente62e27bf5bbae5d0ba596ae43356a7c9c988a067 (diff)
downloadrust-6a8780473e689315583fe49b5479d51cd6b721dd.tar.gz
rust-6a8780473e689315583fe49b5479d51cd6b721dd.zip
fix: `unused_async` FP on function with `todo!`
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/unused_async.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/unused_async.rs b/tests/ui/unused_async.rs
index 433459253dd..7a0be825a2d 100644
--- a/tests/ui/unused_async.rs
+++ b/tests/ui/unused_async.rs
@@ -127,3 +127,13 @@ mod issue14704 {
         async fn cancel(self: Arc<Self>) {}
     }
 }
+
+mod issue15305 {
+    async fn todo_task() -> Result<(), String> {
+        todo!("Implement task");
+    }
+
+    async fn unimplemented_task() -> Result<(), String> {
+        unimplemented!("Implement task");
+    }
+}