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:
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.rs6
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;