2024-01-29 17:41:51 +00:00
|
|
|
//@ aux-build:block-on.rs
|
|
|
|
//@ edition:2021
|
|
|
|
//@ run-pass
|
|
|
|
|
|
|
|
extern crate block_on;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
block_on::block_on(async {
|
|
|
|
let x = async || {};
|
|
|
|
|
2024-11-04 18:59:57 +00:00
|
|
|
async fn needs_async_fn_mut(mut x: impl AsyncFnMut()) {
|
2024-01-29 17:41:51 +00:00
|
|
|
x().await;
|
|
|
|
}
|
|
|
|
needs_async_fn_mut(x).await;
|
|
|
|
});
|
|
|
|
}
|