2 #![feature(must_not_suspend)]
3 #![allow(must_not_suspend)]
5 // This tests the basic example case for the async-await-specific error.
9 fn is_send<T: Send>(t: T) { }
12 bar(&Mutex::new(22)).await;
15 async fn bar(x: &Mutex<u32>) {
16 let g = x.lock().unwrap();
24 //~^ ERROR future cannot be sent between threads safely