]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-67893.rs
Provide a better diagnostic on failure to meet send bound on futures in a foreign...
[rust.git] / src / test / ui / async-await / issues / issue-67893.rs
1 // aux-build: issue_67893.rs
2 // edition:2018
3
4 extern crate issue_67893;
5
6 fn g(_: impl Send) {}
7
8 fn main() {
9     g(issue_67893::run())
10     //~^ ERROR future cannot be sent between threads safely
11 }