diff options
| author | Fayti1703 <fayti1703@protonmail.com> | 2024-09-14 10:28:21 +0200 |
|---|---|---|
| committer | Fayti1703 <fayti1703@protonmail.com> | 2024-09-14 10:43:26 +0200 |
| commit | 14285e9804c2500d674d215a8abfaef9b0d3672d (patch) | |
| tree | 2a9c6e5b83f9f061550bf28b9ae5d41ffe9279bf | |
| parent | 0307e401c26699656ae08e3809e7d272f5c103f4 (diff) | |
| download | rust-14285e9804c2500d674d215a8abfaef9b0d3672d.tar.gz rust-14285e9804c2500d674d215a8abfaef9b0d3672d.zip | |
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.
| -rw-r--r-- | compiler/rustc_lint/src/async_closures.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/async_closures.rs b/compiler/rustc_lint/src/async_closures.rs index 33cc5738262..2a821b71103 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 {}; /// ``` |
