]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issues/issue-67893.rs
Rollup merge of #107076 - megakorre:106419_add_test_case, r=compiler-errors
[rust.git] / tests / 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 }