From 14285e9804c2500d674d215a8abfaef9b0d3672d Mon Sep 17 00:00:00 2001 From: Fayti1703 Date: Sat, 14 Sep 2024 10:28:21 +0200 Subject: [PATCH] docs: Enable required feature for 'closure_returning_async_block' lint Failing to do this results in the lint example output complaining about the lint not existing instead of the thing the lint is supposed to be complaining about. --- compiler/rustc_lint/src/async_closures.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_lint/src/async_closures.rs b/compiler/rustc_lint/src/async_closures.rs index 33cc5738262f6..2a821b7110316 100644 --- a/compiler/rustc_lint/src/async_closures.rs +++ b/compiler/rustc_lint/src/async_closures.rs @@ -12,6 +12,7 @@ declare_lint! { /// ### Example /// /// ```rust + /// #![feature(async_closure)] /// #![warn(closure_returning_async_block)] /// let c = |x: &str| async {}; /// ```