rust/tests/ui/async-await/issues/issue-67893.rs

12 lines
210 B
Rust
Raw Normal View History

2020-04-15 20:09:59 -05:00
// aux-build: issue_67893.rs
// edition:2018
extern crate issue_67893;
fn g(_: impl Send) {}
fn main() {
g(issue_67893::run())
2023-06-24 05:02:54 -05:00
//~^ ERROR `MutexGuard<'_, ()>` cannot be sent between threads safely
2020-04-15 20:09:59 -05:00
}