Plumb awaitness of for loops
This commit is contained in:
parent
bf9229a2e3
commit
27d6539a46
26 changed files with 137 additions and 53 deletions
11
tests/ui/async-await/feature-async-for-loop.stderr
Normal file
11
tests/ui/async-await/feature-async-for-loop.stderr
Normal file
|
@ -0,0 +1,11 @@
|
|||
error[E0658]: `for await` loops are experimental
|
||||
--> $DIR/feature-async-for-loop.rs:8:13
|
||||
|
|
||||
LL | for await _i in core::async_iter::from_iter(0..3) {
|
||||
| ^^^^^
|
||||
|
|
||||
= help: add `#![feature(async_for_loop)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
Loading…
Add table
Add a link
Reference in a new issue