Plumb awaitness of for loops
This commit is contained in:
parent
bf9229a2e3
commit
27d6539a46
26 changed files with 137 additions and 53 deletions
14
tests/ui/async-await/feature-async-for-loop.rs
Normal file
14
tests/ui/async-await/feature-async-for-loop.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// edition:2021
|
||||
// gate-test-async_for_loop
|
||||
|
||||
#![feature(async_iter_from_iter, async_iterator)]
|
||||
|
||||
fn f() {
|
||||
let _ = async {
|
||||
for await _i in core::async_iter::from_iter(0..3) {
|
||||
//~^ ERROR `for await` loops are experimental
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue