1 // build-pass (FIXME(62277): could be check-pass?)
8 impl<R> MyClosure for dyn FnMut() -> R
13 struct MyStream<C: ?Sized + MyClosure> {
17 async fn get_future<C: ?Sized + MyClosure>(_stream: MyStream<C>) {}
20 let messages: MyStream<dyn FnMut()> = unimplemented!();
21 get_future(messages).await;