mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
14 lines
247 B
Rust
14 lines
247 B
Rust
// edition:2018
|
|
#![feature(must_not_suspend)]
|
|
#![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() {
|
|
}
|