about summary refs log tree commit diff
path: root/tests/ui/async-await/feature-async-for-loop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/feature-async-for-loop.rs')
-rw-r--r--tests/ui/async-await/feature-async-for-loop.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/async-await/feature-async-for-loop.rs b/tests/ui/async-await/feature-async-for-loop.rs
index 6d32b3ca700..42247dd14b0 100644
--- a/tests/ui/async-await/feature-async-for-loop.rs
+++ b/tests/ui/async-await/feature-async-for-loop.rs
@@ -11,4 +11,13 @@ fn f() {
     };
 }
 
+#[cfg(FALSE)]
+fn g() {
+    let _ = async {
+        for await _i in core::async_iter::from_iter(0..3) {
+            //~^ ERROR `for await` loops are experimental
+        }
+    };
+}
+
 fn main() {}