Closed timongh closed 1 year ago
#[generator(yield(i32))] fn nums() { yield_!(3); }
#[generator({ yield i32; })] fn nums() { yield_!(3); }
The macro generator is from the crate next-gen.
generator
Input code
Output code
Additional context
The macro
generator
is from the crate next-gen.