2021-09-27 10:43:30 -05:00
|
|
|
// edition:2018
|
2021-10-12 11:10:05 -05:00
|
|
|
#![feature(must_not_suspend)]
|
2021-09-27 10:43:30 -05:00
|
|
|
#![deny(must_not_suspend)]
|
|
|
|
|
|
|
|
async fn other() {}
|
|
|
|
|
|
|
|
pub async fn uhoh(m: std::sync::Mutex<()>) {
|
|
|
|
let _guard = m.lock().unwrap(); //~ ERROR `MutexGuard` held across
|
|
|
|
other().await;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|