// SPDX-License-Identifier: Apache-2.0 OR MIT #![feature(coroutines)] use futures_async_stream::stream; #[stream(item = ())] async fn borrow_mut(a: Vec) { a.clear(); //~ ERROR E0596 } fn main() {}