]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/async_yields_async.fixed
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / tools / clippy / tests / ui / async_yields_async.fixed
index e20b58269b93e60485b68b74618b3bc4a6fe77d3..3cf380d2b954b0b5f4eb1efa22a54d231dac88df 100644 (file)
@@ -1,5 +1,5 @@
 // run-rustfix
-
+#![feature(lint_reasons)]
 #![feature(async_closure)]
 #![warn(clippy::async_yields_async)]
 
@@ -65,3 +65,14 @@ fn main() {
     let _n = async || custom_future_type_ctor();
     let _o = async || f();
 }
+
+#[rustfmt::skip]
+#[allow(dead_code)]
+fn check_expect_suppression() {
+    #[expect(clippy::async_yields_async)]
+    let _j = async || {
+        async {
+            3
+        }
+    };
+}