]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/await_holding_lock.rs
Auto merge of #6336 - giraffate:sync-from-rust, r=flip1995
[rust.git] / tests / ui / await_holding_lock.rs
index 5c1fdd83efb0da25f4578355532ee4101126cb11..0458950edee1c9660d41a4e15a974038f3949eac 100644 (file)
@@ -47,6 +47,7 @@ async fn not_good(x: &Mutex<u32>) -> u32 {
     first + second + third
 }
 
+#[allow(clippy::manual_async_fn)]
 fn block_bad(x: &Mutex<u32>) -> impl std::future::Future<Output = u32> + '_ {
     async move {
         let guard = x.lock().unwrap();