// SPDX-License-Identifier: Apache-2.0 OR MIT
#![feature(coroutines)]
use futures_async_stream::stream_block;
fn foo<F: FnMut()>(_f: F) {}
fn main() {
let a = String::new();
foo(|| {
stream_block! { //~ ERROR cannot move out of `a`, a captured variable in an `FnMut` closure
yield a
};
});
}