Encode coroutine_by_move_body_def_id in crate metadata
This commit is contained in:
parent
c52c23b6f4
commit
062ff4dfda
4 changed files with 17 additions and 1 deletions
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue