about summary refs log tree commit diff
path: root/tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-11-04 18:59:57 +0000
committerMichael Goulet <michael@errs.io>2024-12-02 16:49:59 +0000
commita6f2f00de89e1dd9cb903db93dac754398c1267f (patch)
treed5ae768f0a81002453dfabfb99c6a53a1e8b4bda /tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs
parent3bff51ea912d4dfd9caa1e3bc6f68352618208a7 (diff)
downloadrust-a6f2f00de89e1dd9cb903db93dac754398c1267f.tar.gz
rust-a6f2f00de89e1dd9cb903db93dac754398c1267f.zip
Move tests back to using AsyncFn
Diffstat (limited to 'tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs')
-rw-r--r--tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs b/tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs
index be436465315..e7644e3dfe0 100644
--- a/tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs
+++ b/tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs
@@ -8,7 +8,7 @@ extern crate block_on;
 
 fn main() {
     block_on::block_on(async {
-        async fn needs_async_fn_once(x: impl async FnOnce()) {
+        async fn needs_async_fn_once(x: impl AsyncFnOnce()) {
             x().await;
         }