rust/tests/ui/async-await/async-closures/foreign.rs
2024-02-16 20:02:50 +00:00

20 lines
289 B
Rust

//@ aux-build:block-on.rs
//@ aux-build:foreign.rs
//@ edition:2021
//@ build-pass
#![feature(async_closure)]
use std::future::Future;
extern crate block_on;
extern crate foreign;
struct NoCopy;
fn main() {
block_on::block_on(async {
foreign::closure()().await;
});
}