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.
This commit is contained in:
Fayti1703 2024-09-14 10:28:21 +02:00
parent 0307e401c2
commit 14285e9804
No known key found for this signature in database
GPG Key ID: 84289D48B7CD67AD

View File

@ -12,6 +12,7 @@ declare_lint! {
/// ### Example
///
/// ```rust
/// #![feature(async_closure)]
/// #![warn(closure_returning_async_block)]
/// let c = |x: &str| async {};
/// ```