diff options
| author | Eric Holk <ericholk@microsoft.com> | 2023-12-12 17:33:51 -0800 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2023-12-19 16:12:17 -0800 |
| commit | 397f4a15bbcad7d22f8c09edb72a0d49e3da80c9 (patch) | |
| tree | 925131df7b98912bf0c219f3e229094d200dab0c /tests/ui/async-await/feature-async-for-loop.rs | |
| parent | 97df0d3657fafac6e6ca481c1d4123bf6e2633f1 (diff) | |
| download | rust-397f4a15bbcad7d22f8c09edb72a0d49e3da80c9.tar.gz rust-397f4a15bbcad7d22f8c09edb72a0d49e3da80c9.zip | |
Add additional tests and update existing tests
Diffstat (limited to 'tests/ui/async-await/feature-async-for-loop.rs')
| -rw-r--r-- | tests/ui/async-await/feature-async-for-loop.rs | 9 |
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() {} |
