mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
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:
parent
0307e401c2
commit
14285e9804
@ -12,6 +12,7 @@ declare_lint! {
|
||||
/// ### Example
|
||||
///
|
||||
/// ```rust
|
||||
/// #![feature(async_closure)]
|
||||
/// #![warn(closure_returning_async_block)]
|
||||
/// let c = |x: &str| async {};
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user