dtolnay / dtolnay/syn

Parse `gen` blocks and functions

Open
#1,526 0 comments 3 reactions 0 assignees View on GitHub
syntax
Dominant language
Rust
Stars
3.4k
Forks
374
Avg merge
1d 5h
Merged PRs (30d)
2

Description

Tracking issue: https://github.com/rust-lang/rust/issues/117078

```rust
fn moved() -> impl Iterator {
let mut x = "foo".to_string();
gen move {
yield 42;
if x == "foo" { return }
x.clear();
for x in 3..6 { yield x }
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.