]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/must_not_suspend/gated.rs
2 #![deny(must_not_suspend)] //~ ERROR the `must_not_suspend`
3 //~| ERROR the `must_not_suspend`
4 //~| ERROR the `must_not_suspend`
8 pub async
fn uhoh(m
: std
::sync
::Mutex
<()>) {
9 let _guard
= m
.lock().unwrap(); //~ ERROR `MutexGuard` held across