2022-02-28 14:29:06 -06:00
|
|
|
// check-pass
|
|
|
|
|
2021-10-12 11:10:05 -05:00
|
|
|
// edition:2018
|
2022-02-28 14:29:06 -06:00
|
|
|
#![deny(must_not_suspend)]
|
|
|
|
//~^ WARNING unknown lint: `must_not_suspend`
|
|
|
|
//~| WARNING unknown lint: `must_not_suspend`
|
|
|
|
//~| WARNING unknown lint: `must_not_suspend`
|
2021-10-12 11:10:05 -05:00
|
|
|
|
|
|
|
async fn other() {}
|
|
|
|
|
|
|
|
pub async fn uhoh(m: std::sync::Mutex<()>) {
|
2022-02-28 14:29:06 -06:00
|
|
|
let _guard = m.lock().unwrap();
|
2021-10-12 11:10:05 -05:00
|
|
|
other().await;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|