blob: 319dcc0084a7c655d5330b19707d572899cd6041 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
 | // Ensure that we don't suggest constraining `CallRefFuture` here,
// since that isn't stable.
fn spawn<F: AsyncFn() + Send>(f: F) {
    check_send(f());
    //~^ ERROR cannot be sent between threads safely
}
fn check_send<T: Send>(_: T) {}
fn main() {}
 |