From 397f4a15bbcad7d22f8c09edb72a0d49e3da80c9 Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Tue, 12 Dec 2023 17:33:51 -0800 Subject: Add additional tests and update existing tests --- tests/ui/async-await/feature-async-for-loop.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/ui/async-await/feature-async-for-loop.rs') 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() {} -- cgit 1.4.1-3-g733a5