blob: f0d750714cd0b4a250a431945792fdc448a2a10a [file] [log] [blame]
// aux-build:foreign-async-fn.rs
// edition:2021
extern crate foreign_async_fn;
use foreign_async_fn::Foo;
fn bar<T: Foo>() {
fn needs_send(_: impl Send) {}
needs_send(T::test());
//~^ ERROR `impl Future<Output = ()>` cannot be sent between threads safely
}
fn main() {}