mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
18 lines
335 B
Rust
18 lines
335 B
Rust
// check-pass
|
|
|
|
// edition:2018
|
|
#![deny(must_not_suspend)]
|
|
//~^ WARNING unknown lint: `must_not_suspend`
|
|
//~| WARNING unknown lint: `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() {
|
|
}
|