about summary refs log tree commit diff
path: root/tests/ui/async-await/issues/issue-67893.rs
blob: 2020abe7a5a903f3143ff968b6be93428d1c3f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ aux-build: issue_67893.rs
//@ edition:2018

extern crate issue_67893;

fn g(_: impl Send) {}

fn main() {
    g(issue_67893::run())
    //~^ ERROR `std::sync::MutexGuard<'_, ()>` cannot be sent between threads safely
}