futures-async-stream 0.2.13

Async stream for Rust and the futures crate.
Documentation
error[E0507]: cannot move out of `a`, a captured variable in an `FnMut` closure
  --> tests/ui/move-captured-variable.rs:12:9
   |
10 |       let a = String::new();
   |           -   ------------- move occurs because `a` has type `String`, which does not implement the `Copy` trait
   |           |
   |           captured outer variable
11 |       foo(|| {
   |           -- captured by this `FnMut` closure
12 | /         stream_block! { //~ ERROR cannot move out of `a`, a captured variable in an `FnMut` closure
13 | |             yield a
   | |                   - variable moved due to use in coroutine
14 | |         };
   | |_________^ `a` is moved here
   |
help: `Fn` and `FnMut` closures require captured values to be able to be consumed multiple times, but `FnOnce` closures may consume them only once
  --> tests/ui/move-captured-variable.rs:7:11
   |
 7 | fn foo<F: FnMut()>(_f: F) {}
   |           ^^^^^^^
   = note: this error originates in the macro `stream_block` (in Nightly builds, run with -Z macro-backtrace for more info)