blob: 6d32b3ca7007b716a79da59c888dd769712464ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {}
|