blob: fe8192b0eaa7ff14da2c0fd50e19700bd64619c3 [file] [log] [blame]
// check-pass
// edition:2018
#![deny(must_not_suspend)]
//~^ WARNING unknown lint: `must_not_suspend`
async fn other() {}
pub async fn uhoh(m: std::sync::Mutex<()>) {
let _guard = m.lock().unwrap();
other().await;
}
fn main() {
}