diff options
| author | Michael Goulet <michael@errs.io> | 2024-02-06 17:41:48 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-02-06 17:41:48 +0000 | 
| commit | f1308783b4a7e613d60bddfa0f5474363c198289 (patch) | |
| tree | e2c8c009c1e2d62eee61d152c5234ed88feb1e59 /tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs | |
| parent | 4a2fe4491ea616983a0cf0cbbd145a39768f4e7a (diff) | |
| download | rust-f1308783b4a7e613d60bddfa0f5474363c198289.tar.gz rust-f1308783b4a7e613d60bddfa0f5474363c198289.zip | |
Make async closures test use async bound modifier
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.rs | 6 | 
1 files changed, 2 insertions, 4 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 4afc43fe6bd..0ba323a71cd 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 @@ -5,17 +5,15 @@ // FIXME(async_closures): When `fn_sig_for_fn_abi` is fixed, remove this. // ignore-pass (test emits codegen-time warnings) -#![feature(async_closure, async_fn_traits)] +#![feature(async_closure)] extern crate block_on; -use std::ops::AsyncFnOnce; - fn main() { block_on::block_on(async { let x = async || {}; - async fn needs_async_fn_once(x: impl AsyncFnOnce()) { + async fn needs_async_fn_once(x: impl async FnOnce()) { x().await; } needs_async_fn_once(x).await; | 
