Encode coroutine_by_move_body_def_id in crate metadata

This commit is contained in:
Michael Goulet 2024-09-10 11:39:46 -04:00
parent c52c23b6f4
commit 062ff4dfda
4 changed files with 17 additions and 1 deletions

View file

@ -12,8 +12,13 @@ extern crate foreign;
struct NoCopy;
async fn call_once(f: impl async FnOnce()) {
f().await;
}
fn main() {
block_on::block_on(async {
foreign::closure()().await;
call_once(foreign::closure()).await;
});
}